开发者

store image into XML/CSV or Disk?

开发者 https://www.devze.com 2023-04-12 02:38 出处:网络
we storeimage files into database as BLOB type, bu开发者_开发技巧t i have to save the image files into XML/CSV. as far as i understand XML is text based and it can only save data as text format so the

we storeimage files into database as BLOB type, bu开发者_开发技巧t i have to save the image files into XML/CSV. as far as i understand XML is text based and it can only save data as text format so the images need to change to base64. Right?

OR i am thinking to save image somewhere in disk and give the url into XML. BTW i haven't much idea about data base, please give me any idea to save image files into csv/xml.

Requirement for this appl'n : There is a customized web application which provides to edit css including modify background image url and in process of edit the web-page's image/button, it uploads image from client, saves into (??? this is my question, Where ?) and linked with web-page.


Usually you save the image file onto the disk, then put the filepath into the database, rather than the actually binary data.

This way you get the benefit of easy HTTP serving, as well as a smaller database and easier incremental backups of both.

0

精彩评论

暂无评论...
验证码 换一张
取 消