How to read an image from an file using jsp
reading an image from an file present on local disk using jsp
Server-local or client-local? First, File I/O, second: better get a new job.
Similar Messages
-
How to read some images from file system with webdynpro for abap?
Hi,experts,
I want to finish webdynpro for abap program to read some photos from file system. I may make MIMES in the webdynpro component and create photos in the MIMES, but my boss doesn't agree with me using this way. He wish me read these photos from file system.
How to read some images from file system with webdynpro for abap?
Thanks a lot!Hello Tao,
The parameter
icm/HTTP/file_access_<xx>
may help you to access the pictures without any db-access.
The following two links may help you to understand the other possibilities as well.
The threads are covering BSP, but it should be useful for WebDynpro as well.
/people/mark.finnern/blog/2003/09/23/bsp-programming-handling-of-non-html-documents
http://help.sap.com/saphelp_sm40/helpdata/de/c4/87153a1a5b4c2de10000000a114084/content.htm
Best regards
Christian -
How to read the data from Excel file and Store in XML file using java
Hi All,
I got a problem with Excel file.
My problem is how to read the data from Excel file and Store in XML file using java excel api.
For getting the data from Excel file what are all the steps i need to follow to get the correct result.
Any body can send me the code (with java code ,Excel sheet) to this mail id : [email protected]
Thanks & Regards,
Sreenu,
[email protected],
india,If you want someone to do your work, please have the courtesy to provide payment.
http://www.rentacoder.com -
How to read bytes(image) from a server ?how to display image after read byt
How to read bytes(image) from a server ?how to display image after reading bytes?
i have tried coding tis , but i couldnt get the image to be display:
BufferedInputStream in1=new BufferedInputStream(kkSocket.getInputStream());
int length1;
byte [] data=new byte[1048576];
if((length1=in1.read(data))!=-1){
System.out.println("???");
}System.out.println("length "+length1);
Integer inter=new Integer(length1);
byte d=inter.byteValue();didn't I tell you about using javax.imageio.ImageIO.read(InputStream) in another thread?
-
How to read a data from USB port using JAVA
hi all,
i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
Advance Thanks!!You can do this. Please use this link
[http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
What research did you do of your own? Have you done some testing application and tried yourself?? -
How 2 get the path of a file Using jsp
how 2 get the path of a file Using jsp
i have tried getPath...but i'm geting the error
The method getPath(String) is undefined for the type HttpServletRequest
any idea how 2 get the path of a fileYou need ServletContext#getRealPath().
API documentation: http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRealPath(java.lang.String) -
How to read/write image from Microsoft Word
Hello All,
I have to replace an image from word(.doc) files.How to read/write images, can any body help me out.
Thanks in Advance
Harish Sohaneharissohane wrote:
Hi,
Thanks a lot. if any body knows about it please let me know. waiting for reply.
Thanks in AdvanceLooking at POI again, it doesn't let you write them, but it does let you read them.
[A list of API's found in Google in 10 seconds.|http://schmidt.devlib.org/java/libraries-word.html] -
How to read the data from a file in another computer with user name and password login
How to read read the data from a file in anohter computer which need to login with user name and password?
duplicate post: http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2061478
duplicate post: http://forums.ni.com/t5/LabVIEW/do-need-to-enter-the-user-name-and-password-when-TCP-ip/m-p/2061612
duplicate post http://forums.ni.com/t5/LabVIEW/log-on-the-other-computer-with-user-name-and-password/m-p/2060682 -
How to read a byte[] from a file
Hi can someone help me to read a byte[] from a file. I need to save a byte[] to a file and then retrieve it later can someone help in this..
Thanxthere are actually docs on the classes ByteArrayInputStream and ByteArrayOutputStream here:
http://java.sun.com/javase/6/docs/api/
go there (copy & paste in browser) and text search for the above classes.
Then read into it. That way, you will come to a better comprehension of the entire thing. You may as well want to read this:
http://java.sun.com/docs/books/tutorial/essential/io/index.html
And for the future: if you have general problems, search API docs and tutorials first and solve them yourself. The guys around here can get pretty annoyed about "Teach me the entire Java Thing" (also called "someone do my homework") requests.
If you have a special problem, ie an Exception you don?t understand or a method wich you don?t know how it works, everybody will like to help you.
Only few real serial killers frequent these forums. -
How to read and write from XL file
HI ,
I wanted to read a data from XL file and write a data in XL file by generating a report .Can any body help me out.Many examples are available on discussion forums but when I try to save and run those Vi .I am not able to run Showing error .Please tell what is going wrong as I m having latest labview 8.6 .
Regards
Sharmila.karaleHi Adnan,
Here are the examples of Vi which I have downloaded from the forum for my reference
Regards
Sharmila.Krale
Attachments:
SAVE TO EXCEL.llb 128 KB
excel.llb 1618 KB -
How to read screendump image from clipboard to a file
I am trying to build a program that runs minimized while other programs are being used at the same moment. At certain moments I want to make a screenshot and save that information to a image file on the harddisk.
I have now the "user32.dll" to work and generate a "printscreen" push button. Now I want to write the information on the clipboard to an image file.
How can I read the information on the clipboard and use it in a VI?
Thanks in advance.
FerryIf the screen you want to capture is a VI, you should use Invoke Node -> Get Panel Image, and Write BMP File.vi.
See attached VI.
If the screen isn't made in LabVIEW, and it's minimized, printscreen can't catch it.
To save the clipboard image to file, you can import the clipboard image into LabVIEW first
(use Image Toolbox: http://www.geocities.com/gzou999/imgtool.htm), and then Write BMP File.vi
George Zou
http://gtoolbox.yeah.net
George Zou
http://webspace.webring.com/people/og/gtoolbox
Attachments:
Save Panel.vi 25 KB -
How to read the data from excel file and store into the table?
Hi All,
I have table with BLOB datatype contains a excel file. I have to read that data from excel and store into one table with all the fields in excel.
All the excel fields and my table columns are same.
Can you share with me how can acheive this using LOB's?
ThanksHi OraSuirya,
you can try with external tables .
syntax as follows
create table ext_table_csv (
i Number,
n Varchar2(20),
m Varchar2(20)
organization external (
type oracle_loader
default directory ext_dir
access parameters (
records delimited by newline
fields terminated by ','
missing field values are null
location ('file.csv')
reject limit unlimited;
For this you need to create directory
Directory Creation syntax:
create or replace directory ext_dir as 'D:\oracle\user_dir\ext_dir';
grant read, write on directory ext_dir to <User>;
please paste the excel file in the particular directory .
I hope this will help you.
Please correct me if I am wrong anywhere .
Thanks,
Tippu. -
How to read the data from XML file and insert into oracle DB
Hi All,
I have below require ment.
I will receive data in the XML file. then i need to read that data and insert into oracle tables. please let me know how this can be handled.
Many Thanks.Sounds a lot like this question, only with less details.
how to read data from XML variable and insert into table variable
We can only help if you provide us details to help as we cannot see what you are doing and only know what you tell us. Plenty of examples abound on the forums that cover the topics you seek as well. -
How to read jpg image from a specified path
Hi
I am having an image in jpg ext, so i am using File nf = new File(path);to read the image, now i have to place that jpg image in an byte/String array so from that i will save that in to the Oracle DB with BLOB data type, plz answer to this asap with code......
the following code is not useful i think so...
String st = "C:\Documents and Settings\Sasi\Desktop\sasi.jpg"
File infile = new File(st);
BufferedImage im = ImageIO.read(infile);
String[] reader_names = ImageIO.getReaderFormatNames();plz reply to this asap,
regards
sasiSasi9 wrote:
String st = "C:\Documents and Settings\Sasi\Desktop\sasi.jpg"
File infile = new File(st);
//BufferedImage im = ImageIO.read(infile);
//String[] reader_names = ImageIO.getReaderFormatNames();
byte[] buffer = new byte[infile.length()];Now use a RandomAccessFile to read the file into your byte array. [readFully(buffer);|http://java.sun.com/j2se/1.4.2/docs/api/java/io/RandomAccessFile.html] -
How to read DES key from a file?
I stored the DES key in the file as follows:
KeyGenerator keygen = KeyGenerator.getInstance("DES");
SecretKey Key = keygen.generateKey();
FileOutputStream ostream = new FileOutputStream("t.tmp");
ObjectOutputStream p = new ObjectOutputStream(ostream);
p.writeObject(Key) ;
p.flush();
ostream.close();
I don't know if there is problem with the above code, I am just new to java cryptography.
I have problem read in the key and store it in the DES key object to be used for decryption.
Can someone please tell me how to do it and a simple example will be appriciated.
thanks
JeffThank you for your help. after getting the key from the file( the output of the key is com.sun.crypto.provider.DESKey@fffe786d, not sure if it is right), I use this key to decrypt the message sent from the client program.
here is the code:
ObjectInputStream ois=new ObjectInputStream(data.getInputStream());
String c = ois.readLine() ;//should I convert the byte[] data to String?
ois.close() ;
jTextField1.setText(c) ;//display the cipher text to the first textfield
byte[] ciphertext = c.getBytes() ;
// System.out.write(ciphertext) ;
// get key from file
FileInputStream in = new FileInputStream("t.tmp");
ObjectInputStream oin = new ObjectInputStream(in);
SecretKey Key = (SecretKey)oin.readObject();
oin.close();
in.close();
System.out.println(Key) ;
//decrypt
Cipher C = Cipher.getInstance("DES");
C.init(Cipher.DECRYPT_MODE, Key);
// Decrypt the ciphertext
byte[] cleartext1 =C.doFinal(ciphertext);
System.out.write(cleartext1) ;//doesn't show anything!!
System.out.println("this is cleartexxt");//doesn't even show this!!
String display = new String(cleartext1);
jTextField2.setText(display);
why there is no output from System.out.write(cleartext1)? where did I go wrong?
thank you.
Jeff
Maybe you are looking for
-
Purchase Rebate - Error during Settlement - MEB4
Hi Experts, For the Purchase Rebate Scenario, I have followed the following steps : 1. Create Rebate Arrangement 2. Create PO 3. Goods Receipt 4. Invoice verification using MIRO 5. Check Update of business volume T-code : MEB6 Update of business volu
-
User Settings - To Clear a default value stored by the Users
Hi All, Are the user settings like default values will stored in any table? if so can anybody provide me that table name? I do want to clear the default COQ category value stored by all the users. If not in table, how can i clear this value? Thanks M
-
What font is used for the tool flyout labels.
What font is used for the tool flyout labels, mine are blank, however they work fine for the Menu items. Thank you, [email protected]
-
Default application will not change
I've seen several posts on this topic but no working solutions yet. I have a Mac with several user accounts, some admins, some not. There are 2 versions of QuarkXPress 6.5 installed, the normal version and the Passport Edition. Under some accounts, d
-
Error ::OraOLEDBpus10.dll: The specified module could not be found.
hello all, i have Oracle 9i installed in my system; Without deinstalling Oracle 9i , i have installed Orale 10 G ... while opening my application(it is in vC++), i got the following error: OraOLEDBpus10.dll: The specified module could not be found. p