English 中文(简体)
• 如何将巴洛博人送入一名JSON服务公司?
原标题:Sending BLOBs in a JSON service,... how?

I have a webservice (ie. servlet) implemented in Java. It gets some data from a MySQL table, with one column being of type BLOB (an image), and some other columns are just plain text. Normally I would store the file outside the database with a pointer to it in the database, but due to circumstance I now have to use this BLOB column...

这样做的恰当方式是什么? • 如何在JSONObject树立形象,如何在另一个方面树立形象?

I want to use JSONP, to avoid having to proxy it through the consumer s webserver.

因此,消费者只能站在网络服务上,要求退步。

如何处理这种情况中的图像? 对业绩的思考也令人感兴趣!

最佳回答

我可以考虑java-side base64_encode,以确保BLOB与文本上只有的json相容,然后将javascript-side to base64_decode and/or .inline方面的图像用于提供。

问题回答

暂无回答




相关问题
JQuery/MVC Search Issue

I have inherited a piece of work where the entry screen shows a summary of 20 calculated variables. E.g. Var A (250), Var B (79). Clicking on any of these links takes the user to a view with a ...

jQuery quicksearch plug-in tinkering with JSON

I ve implemented the quicksearch plugin by Rik Lomas and I love it for an application in a custom CMS I m building. I was wondering though, since I m going to have a bizillion items in the table if ...

JSON with classes?

Is there a standardized way to store classes in JSON, and then converting them back into classes again from a string? For example, I might have an array of objects of type Questions. I d like to ...

PHP json_decode question

i m trying to use json_decode to combine a few json objects and then re-encode it. my json looks like: { "core": { "segment": [ { "id": 7, "...

Converting JSON data to Java object

I want to be able to access properties from a JSON string within my Java action method. The string is available by simply saying myJsonString = object.getJson(). Below is an example of what the string ...

热门标签