Jump to content

LongBlob in XML


chillyroll

Recommended Posts

Hello guys,

 

I want help in returning LongBlob data in XML fro MySQL database. I am writing an API for Document Management and storing entire file in database. When I am returning the .doc file in SOAP response, the file contents stored in the database is affecting the XML structure of the SOAP response, as a result the response is not proper. As a work around, I am returning the contents after using base64_encode(). But i am not sure whether this is the optimal solution or no since for some case it MIGHT break the structure again. Also base64_encode() unnecessarily increasing the size of the response returned.

 

So, can any one suggest me how to return the LongBlob in SOAP response???

 

Thanks in advance,

Chillyroll!!!

Link to comment
https://forums.phpfreaks.com/topic/103223-longblob-in-xml/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.