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

  • SEARCH
  • Home
  • 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 servlet which does the following: Gets a set of data from
I have a WebService in Java (Using Apache Axis) that get's the id of
I have a webservice using Hibernate as DAL - using MySql with InnoDB. Since
We have implemented webservice which generates xml response. I am facing issue while invoking
im stuck in this terrible problem, I have a SOAP based webservice implemented in
The idea: I have a JAX-RS webservice servlet (Object called webServlet ) which instantiates
I have a Servlet container (Glassfish/OC4J) which service some JAX-WS web service endpoints which
I have implemented a Webservice using Apache CXF . The flow is this way
I've some issues with my Java Servlet if it's called with special chars (like
Currently I have webservice running on the Mono platform. When I call the service

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.