File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes passing image file as string Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply locked New topic

passing image file as string

muntago Richard
Ranch Hand

Joined: Nov 13, 2010
Posts: 82
I want to pass image file as string as follows

I place this under header

import java.lang.Object;

but is displays

Error cannot find symbol
symbol : method encodeFromFile(java.lang.String)
location :;

any help
Jayesh A Lalwani
Saloon Keeper

Joined: Jan 17, 2008
Posts: 2708


Please do not post the same question in multiple forums. I am locking this thread. Please continue discussion on this thread
I agree. Here's the link:
subject: passing image file as string
It's not a secret anymore!