How to read jpeg files in system?
Hi,
I am developing an intranet application in jsp. I just give the system name. It wants to show all the jpeg files in that system. I don't how to develop this? Please help me ! If any one knows please send me the concept !
regards,
Prakash
Hi
look at this thread your problem is solved here
File Adapter
Regards
Abhishek
Edited by: Abhishek Agrahari on Dec 16, 2008 11:37 AM
Similar Messages
-
How To Read RTF file in JAVA? Using iText?
How To Read RTF file in JAVA? Using iText?.....
import java.io.*;
import com.lowagie.text.*;
import com.lowagie.text.rtf.*;
public class RTF3 {
public static void main(String[] args) {
// System.out.println("This example generate a RTF file name Sample.rtf");
// Create Document object
Document myDoc = new Document();
try {
// Create writer to listen document object
// and directs RTF Stream to the file Sample.rtf
RtfWriter2.getInstance(myDoc, new FileOutputStream("Sample.rtf"));
// open the document object
myDoc.open();
// Create a paragraph
Paragraph p = new Paragraph();
p.add("Helloworld in Rtf file..amazing isn't");
// Add the paragraph to document object
myDoc.add(p);
catch(Exception e) {
System.out.println(e);
//close the document
myDoc.close();
Exception in thread "main" java.lang.NoSuchMethodError: com.lowagie.text.Rectangle.width()F
at com.lowagie.text.rtf.document.RtfPageSetting.rectEquals(RtfPageSetting.java:433)
at com.lowagie.text.rtf.document.RtfPageSetting.guessFormat(RtfPageSetting.java:362)
at com.lowagie.text.rtf.document.RtfPageSetting.setPageSize(RtfPageSetting.java:341)
at com.lowagie.text.rtf.RtfWriter2.setPageSize(RtfWriter2.java:248)
at com.lowagie.text.Document.open(Unknown Source)
at view.RTF3.main(RTF3.java:23)
CAN you HELP me?import com.lowagie.text.Document;
import com.lowagie.text.rtf.parser.RtfParser;
import java.io.FileInputStream;
String inputFile = "sample.rtf";
Document document = new Document();
document.open();
RtfParser parser = new RtfParser(null);
parser.convertRtfDocument(new FileInputStream(inputFile), document); -
How to capture JPEG files by using camera
Hi, now I have a problem, I need your help, I am trying to use a camera that capture JPEG files from camera, I have used those related classes(JMF), but I still can not capture any JPEG files from it.
Although there are some examples about the video capture(just for mov or avi files), it does not mention how to capture JPEG files.
Thank you for your help!I have the same problem.
please,help us. -
How to read jpg files in windows vista
hi all,
I am having difficulty in reading the .jpg file using windows vista as a operating system.
When I am using read jpeg file vi I am getting an error that file path may contain expression not supported by OS.
But the path I am provided is like C:\users\desktop\abc.jpg
I dont know what is the correct file path format for the jpeg file to read in vista..
plz guide me ...Guruthilak wrote:
shruthi,
can you verify once that the "abc.jpg" file is actually a "jpg" file and not a .png or .bmp file?
There are chances that the file extension might have changed and the the LV vi can not read it
Guru
That's another good option.
Could you show your VI and/or upload the jpg?
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be! -
How 2 read two files from 2 diff. directories, using single adapter
How 2 read two files from 2 diff. directories in same system, using single file adapter.
you can use advanced selection for source file
see
http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm -
How to read XML file and update the data in MS CRM 2011?
Hi Folks,
Can anyone please help me finding some references to read XML files and push the data to MS CRM 2011 preferably by using a console application.
Please let me know if any ways of handling it in simple ways.
Thanks,
SriHI,
How to read XML file:
https://social.msdn.microsoft.com/Forums/en-US/5dd7261b-86c4-4ca8-ba87-95196ef3ba50/need-to-display-xml-file-in-textboxes-edit-the-data-and-save-the-new-xml-file?forum=csharpgeneral
How to work with CRM:
ClientCredentials credentials = new ClientCredentials();
credentials.Windows.ClientCredential = new System.Net.NetworkCredential("USER", "Password", "Domain");
Uri uri = new Uri("http://server/Organization/XRMServices/2011/Organization.svc");
OrganizationServiceProxy proxy = new OrganizationServiceProxy(uri, null, credentials, null);
proxy.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
IOrganizationService service = (IOrganizationService)proxy;
//using "service" you can create, update and retrieve entities.
More information here about service functions:
https://msdn.microsoft.com/en-us/library/gg328198.aspx -
'Read JPEG File.vi' does not seem to work on PXI with real-time OS
I am trying to read a jpeg file on a PXI system with LabVIEW real-time on it. To test I created a very simple VI (attached) with only 4 objects: 'Path' --> 'Read JPEG File.vi' --> 'Draw Flattened Pixmap.vi' --> 'Picture'.
This VI works fine on my Windows XP host machine, but it does not work on the PXI system. The error code 1 occurs in 'Read JPEG File.vi'.
The jpeg picture is in the same directory as the VI. I don't think I got the path or filename wrong because if I change the file or path name I get another error: 7: 'File/Directory Info in Check Path.vi->Read JPEG File.vi->test.vi'.
Maybe reading jpeg files is not supported on realtime systems? I could not find anything about it. Sol
utions or workarounds are of course welcome!
Attachments:
Test_Read_JPEG.vi 23 KB'Read JPEG File.vi' is not supported on LabVIEW RT. I believe it has to do with special functions or libraries need to be called due to the JPEG image type. Instead you can use a Bitmap and the 'Read BMP File.vi', which I believe is completely implemented in G code.
Keep in mind that the RT System doesn't really have a front panel and that the front panel is only 'available' when LabVIEW is connected to the target such as being targeted or having a remote panel to it. Generally, a deployed RT system doesn't have a UI and just communicates to a Host VI which acts as the UI. Having said that, the BMP file worked when I tested.
Regards,
JR A. -
Hi,
I am using Read JPEG File.vi to read the image file. The VI behaves differently when I login into my system (windows XP) as user and differently when I login as Administrator. When I login as user and provide the path of the jpeg file (70kb) it trough’s an error code 1.where as same thing works fine when I login as Administrator. For small Jpeg files (3-20kb) it works fine in both the login as. I am attaching the VI and the some jpeg files for your reference. Any suggestions would be greatly appreciated!
Regards,
Sathyendra N
Attachments:
code&jpg.zip 196 KBHello Sathyendra,
I ran your VI and could read your images without any error... the images seem not to be locked for any kind of account (user, admin, etc...) so I don't know what's wrong.
Have you tried to use the "file info" function instead of "read jpg" ?
Try to run this VI and see what happens, maybe resetting access right would help...
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
Attachments:
file.vi 33 KB -
How to read multi files?
Hi !! Can anyone tell me the syntax of reading mulit txt files? Thanks. I only know how to read single file.
try
//Search file
System.out.println(" ");
System.out.println("Search file :");
File file = null;
String fileloc = "c:\\j2sdk1.4.1_06\\bin\\PAYMENT.TXT";
file = new File(fileloc);
//If Payment interface file exists
if (file.exists()) {
System.out.println("File exists !");
System.out.println("");
}Hi!! How to read multi files (For example: dbExport1.txt , dbExport2.txt , dbExport3.txt ...... => dbExport*.txt) ?
I only know how to read a single file.
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
conn = DriverManager.getConnection(url, userid, password);
stmt = conn.createStatement();
if (conn != null)
System.out.println("Connection to Database OK!");
// read it
BufferedReader br = new BufferedReader(new FileReader("c:\\document\\dbExport.txt"));
DataInputStream in = new DataInputStream(new FileInputStream("c:\\document\\dbExport.txt"));
String input;
String firstinput;
String secondinput;
int count=130;
int year=1955;
while ((input = br.readLine()) != null) {
firstinput = input.substring(0, 10);
secondinput = input.substring(10);
count = count + 1;
System.out.println(firstinput);
System.out.println(secondinput);
String insertStore1 = ("INSERT INTO AUTHORS " +
"VALUES ('" + count + "', '" + firstinput + "', '" + secondinput + "', 1955)");
System.out.println(insertStore1);
boolean result;
if (stmt.executeUpdate(insertStore1) == 1){
System.out.println("Insertion successful");
else{
System.out.println("Insertion failed");
br.close();
stmt.close();
conn.close();
} -
How to read .asl files?
I'm working on an iMac, OS 10.5.8. My log folder is full of asl files. I'm not a program-savvy person and need plain language. I've gotten as far as to put the many log files into a temp folder on my desktop. Now I see instructions to "read them at my leisure" but can't find out how to read these files to determine what's causing the rapid multiplication. How do I "read" these logs to determine where the problem lies?
-Correction, in your Log folder, under Private/var/log/asl ; asl files are not associated with photoshop, they are Apple System Logs.
-I also have runaway (asl) files on my 10.5.8 Imac. Some are 80 gig +/-. and it fills my hard-drive. I got a program called Disk Inventory X that helped me graphically find these huge files. That way I can see them, right click on them and reveal them in a finder screen.
-After locating the offending files, if you right click the .asl file and say open with the utility "console" you can view the logs.
-Look for lines that repeat ludicrous times, then try to figure it out.
-I am no expert, but apparently I just found out my problem might be apple.launchd keeps trying to contact com.rim.BBLaunchAgent. I haven't owned a Blackberry for a few years now and already uninstalled their Desktop Manager, but some program remnant seems to be haunting my computer.
-If I determine the asl file(s) are unimportant, I delete them after entering my password. You have to then empty your trash to really free up hard-drive space.
-Good luck with your hunt. -
Hi all,
I am new in web services...just started yesterday.. my client is provinding web services...I just need to send some data to them and retrieve data back...they are basically verifying addresses..if Address is not corrent then they will send the correct one back..I have no clue which method should I call and how to send data to them..below is my work that I have done so far...please help me...
///Below is the Client API that I have made...there is a bean file which I have made for Input Data...
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
public class TestClient {
public static void main(String [] args) {
try {
String endpoint = "http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress( new java.net.URL(endpoint) );
call.setOperationName(new QName("http://m3group101.mnao.net/", "ValidateAddress"));
call.setUsername("free");
call.setPassword("account");
AddressIn addressIn = new AddressIn();
addressIn.Address1 = "6767 Friars Rd";
addressIn.Address2 = "";
addressIn.Address3 = "";
addressIn.Address4 = "";
addressIn.City = "SAN DIEGO";
addressIn.StateProv = "CA";
addressIn.PostalCode = "";
addressIn.Country = "US";
String ret = (String) call.invoke(new Object[] {"",""}); ////Here I donno what should I pass
System.out.println("Sent DATA, got '" + ret + "'");
} catch (Exception e) {
System.err.println("Got Error While retrieving data "+e.toString());
///My Bean File Looks like this....
import java.io.*;
import java.util.*;
import java.util.ResourceBundle;
public class AddressIn {
public String KeyValue;
public String Address1;
public String Address2;
public String Address3;
public String Address4;
public String City;
public String StateProv;
public String PostalCode;
public String Country;
public AddressIn()
KeyValue = "";
Address1 = "";
Address2 = "";
Address3 = "";
Address4 = "";
City = "";
StateProv = "";
PostalCode = "";
Country = "";
} // END constructor
} // END class AddressIn
import java.io.*;
import java.util.*;
import java.util.ResourceBundle;
public class AddressOut {
public String KeyValue;
public String Address1;
public String Address2;
public String Address3;
public String Address4;
public String City;
public String StateProv;
public String PostalCodeBase;
public String PostalCodeAddOn;
public String Country;
public String Status;
public String StatusCode;
public String StatusDescription;
public String Confidence;
public String RecordType;
public AddressOut()
KeyValue = "";
Address1 = "";
Address2 = "";
Address3 = "";
Address4 = "";
City = "";
StateProv = "";
PostalCodeBase = "";
PostalCodeAddOn = "";
Country = "";
Status = "";
StatusCode = "";
StatusDescription = "";
Confidence = "";
RecordType = "";
} // END constructor
} // END class AddressInPlease see the WSDL File...
<?xml version="1.0" encoding="UTF-8" ?>
- <wsdl:definitions targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:intf="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns1="http://com.g1.dcg/services" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsd00="http://www.w3.org/2000/10/XMLSchema" xmlns:xsd99="http://www.w3.org/1999/XMLSchema">
- <wsdl:types>
- <schema targetNamespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ArrayOf_xsd_anyType">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_tns1_ServiceOption">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:ServiceOption[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_tns1_DataRow">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:DataRow[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
- <complexType name="ArrayOf_xsd_string">
- <complexContent>
- <restriction base="soapenc:Array">
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" />
</restriction>
</complexContent>
</complexType>
</schema>
- <schema targetNamespace="http://com.g1.dcg/services" xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
- <complexType name="ServiceOption">
- <sequence>
<element name="key" nillable="true" type="xsd:string" />
<element name="value" nillable="true" type="xsd:string" />
</sequence>
</complexType>
- <complexType name="DataTableBean">
- <sequence>
<element name="columnNames" nillable="false" type="impl:ArrayOf_xsd_string" />
<element name="dataRows" nillable="true" type="impl:ArrayOf_tns1_DataRow" />
</sequence>
</complexType>
- <complexType name="DataRow">
- <sequence>
<element name="values" nillable="true" type="impl:ArrayOf_xsd_string" />
</sequence>
</complexType>
</schema>
</wsdl:types>
- <wsdl:message name="processResponse">
<wsdl:part name="arg0" type="tns1:DataTableBean" />
</wsdl:message>
- <wsdl:message name="processRequest">
<wsdl:part name="arg0" type="impl:ArrayOf_tns1_ServiceOption" />
<wsdl:part name="arg1" type="tns1:DataTableBean" />
</wsdl:message>
- <wsdl:portType name="G1Service">
- <wsdl:operation name="process" parameterOrder="arg0 arg1">
<wsdl:input message="impl:processRequest" name="processRequest" />
<wsdl:output message="impl:processResponse" name="processResponse" />
</wsdl:operation>
</wsdl:portType>
- <wsdl:binding name="ValidateAddressSoapBinding" type="impl:G1Service">
<wsdlsoap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="process">
<wsdlsoap:operation soapAction="ValidateAddress" />
- <wsdl:input name="processRequest">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
</wsdl:input>
- <wsdl:output name="processResponse">
<wsdlsoap:body encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" use="encoded" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
- <wsdl:service name="ValidateAddress">
- <wsdl:port binding="impl:ValidateAddressSoapBinding" name="ValidateAddress">
<wsdlsoap:address location="http://m3group101.mnao.net:8080/jboss-net/services/ValidateAddress" />
</wsdl:port>
</wsdl:service>
</wsdl:definitions>I am receiving Exception " No Such Operation "
I am sorry but I don'n know how to read WSDL file...
thanks
Vish...
Message was edited by:
vishu007Start going through the tutorials that come with Axis (you didn't state which version of Axis you're using btw, and there are major differences between them).
Anyway, the wsdl you list doesn't have an operation called "ValidateAddress". It has only one operation, called "process".
The call takes 2 arguments, as defined in the input message, and returns one value as defined in the output message.
Had you used Axis to generate your classes for you that would all have become quite obvious. -
How to read the file from a folder.
Hi All,
How to read the file from a folder or directory from the non sap server / remote server.
Regards
Sathisopen dataset filename for input in text mode
encoding default.
filename is character type variable with the destination filename.
Edited by: Jino Augustine on Apr 19, 2010 1:31 PM -
How to read .xml file from embedded .swf(flash output) in captivate
I have been trying to read .xml file from the .swf (Flash output) that is embedded within the captivate file but no luck yet . Please if anyone got any clue on how get this thing done using Action script 3.0 then let me know. I am using Adobe Captivate 5.5 at present and Flash CS 5.5.
I am well aware about how to read .xml file through action script 3.0 in flash but when insert the same flash in captivate and publish nothing comes in captivate output. I would higly appreciate if anyone could help me out with that.
Here is is graphical demonstration of my query :
Message was edited by: captainmkvHi Captainmkv,
Does the information in this post cover what you're trying to do: http://forums.adobe.com/message/5081928#5081928
Tristan, -
Reading .jpeg files in FILE or FTP adapter
Hii
I have to send .jpeg files at regular intervals using BPEL.
I read about Base64 data type. I tried to create File Adapter and FTP adapter. I specified the folder location and *.jpeg as file pattern. I have made schema to opaque.
But neither File or FTP adatper are picking up the file from specified directory. As per my plan, once I will get Opaque schema in BPEL, I will use Base64 encoding to get the data as string and to pass it to the endpoints.
Any idea what I need to do in order to read .jpeg files.
Any help is highly appreciated.Thanks for the help. Actually, I am following the similar process as given in "Tutorial 11 : File DB Integrations – Handling of opaque data types".
I'm using SOA Suite 10.1.3.3; the .jpeg file is being picked up by the File Adapter, but failing to create BPEL instance with the following log details :
+"<2009-03-06 17:02:13,053> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.engine.delivery.CorrelationResolutionException: Correlation definition not registered.+
+The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
+Please try to redeploy your process to the process domain.+
+]+
+ORABPEL-03802+
+Correlation definition not registered.+
+The correlation set definition for operation "ReadJPEGOp", process "SyncBase64BPELProcess", has not been registered with the process domain.+
+Please try to redeploy your process to the process domain."+
I have deployed the process multiple times on two different SOA Suite Server 10133, but getting the similar logs. The file is being picked up but not generating BPEL instance.
Any idea ??? -
How to convert jpeg files into word
How to convert jpeg files into Word
Hi Eugene,
I don't think you can convert an image to a Word document, but you could place the JPEG into a Word document using the Insert > Object command in Word.
For other questions relating to Word, you will probably have more luck getting an answer if you post on the Microsoft forums (we can help if you're using Acrobat, or another Adobe product, but you'll find the Word experts on the Microsoft forums.)
Best,
Sara
Maybe you are looking for
-
Addition of new field in the lis standard structure
I want to bring a new field which is available in the standard structre of 2lis. By bringthis, i have to fill the set up table , so that this can be brought to the PSA. Since my PSA, ODS has already got data, i don't want to run the set up table.
-
(java.sql.SQLException) Invalid column type
On Jdeveloper 11.1.2 on Windows7 64b I got this table : create table entry (entry_id number(32) not null, entry_class_id varchar2(5) not null, notes varchar2(200) not null, active varchar2(1) default 'Y' not null, interface varchar2(1) default 'N' no
-
hi everybody anyone plz explain the process flow for workflow ? and setting related to that. regards pushpa
-
does Element 11 support Sony A7r? why can't I use my element 11 to process images produced by Sony A7r?
-
I put in the redemption code on the insert-card but am told that it is wrong. What do I do?? I know I put the code in correctly. Thanks Anitra Gordon