Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3693596
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T04:23:45+00:00 2026-05-19T04:23:45+00:00

I have a webservice (ie. servlet) implemented in Java. It gets some data from

  • 0

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…

What is the proper way to send this? How to encode the image in a JSONObject, and how to parse (and RENDER!) it on the otherside ?

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

So that the consumer can just put in a tag pointing to the webservice, calling a callback.

Any thoughts how to handle images in this situation? Also thoughts on performance etc. are interesting!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T04:23:46+00:00Added an answer on May 19, 2026 at 4:23 am

    I can think of java-side base64_encode to make sure BLOB fits into text-only json, then javascript-side to base64_decode and/or inline images for rendering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script that appends some rows to a table. One of the
I have a webservice in java that receives a list of information to be
I have created a webservice in .net 2.0, C#. I need to log some
So I have made a webservice that interfaces with a set of data contained
I have written a RIA using flex for the front-end and Java servlet for
i have webservice with one method which recieves xml as string: [WebMethod] public int
I have a webservice that is written in C# handling some validation of values.
I have a webservice that when called without specifying a callback will return a
I have a webservice that exists in an asp.net website. When I publish the
I have a webservice and client in c#/dotnet and I am using EnableDecompression to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.