VISA: How to get the CSV file through C/C++ code?
How to get the CSV file through C/C++ code?
I'm communicating with a USB oscilloscope using VISA.
Thank you for your reply.
I am using Apache Commons File Upload. Here is the code where I got the "fi".
DiskFileUpload fu = new DiskFileUpload();
fu.setSizeMax(1000000000);
List fileItems = fu.parseRequest(request);
Iterator itr = fileItems.iterator();
FileItem fi = (FileItem)itr.next();
if(!fi.isFormField())
File tempFileRef = new File(fi.getName());
System.out.println("Field = "+tempFileRef.getAbsolutePath());
}
Similar Messages
-
How to get the form printed through the transaction ME42
hi,
How to get the form printed through the transaction ME42.
For example :
In t.code vf03 . In the main menu there is an option billing document , when we click on that we get a drop down menu which shows issue output to. If a print program call has the code to get the value from the t.code , immdiately when we click issue output to it call the form.Here go to ME42 put in your RFC no, in the menu Header -- Messages, go there and see if a message has been inserted, else you can insert one.
when you save this, it will call the form.
Regards,
Ravi -
How to get the ard file of crystal reports
Hi all,
I have downloaded crystal reports from sap market place but i dont have .ard file for that how to transfer that reports into sap. How to get the ard file please help me out.
Thanks & Regards,
Murtuza Ahmed.When you click on your SAPCrystalSetup.exe and select the path to your add-on folder it will install the files and your ard file will be situated in your add-on folder. Then you can start SAP up and install it from SAP.
So if your SAP install is in your local drive your ard file for crystal reports should be here C:\Program Files\SAP\SAP Business One\AddOns\SAP_CR
Hope this helps. -
hi all,
here java people have given wsdl file to me, how to do the scenario,
and how to get the wsdl file from the java people.
regards,
priyaHello Priya,
Go to http://<hostname>:50000/wsnavigator or any other UDDI server and search for the web service to be invoked
There you can find the Webservice Definition (WSDL) file.
Check this weblog:
Invoke Webservices using SAPXI
regards
Gangaprasad -
How to get the organization structures of a compnay code (BUKRS)?
Hi Friends,
I have a requirement to get the organization structures of a compnay code (BUKRS), such as Controlling area, Credit control area, Plant, Sales Organization, Purch. Organization, Personnel area.
How can I get them, I only know the compnay code table is T001, but how to get the organization structures of a compnay code (BUKRS) into a internal table?
Thanks a lot!Hi,
A lot of table will be involved for the same.
The company code is the highest unit and all other things are assigned to it.
Check the settings in SPRO as to how the maintainance is done.
From here you will get the maintainance view details if you do F1 help on each field.
From this view you can get the relevant tables.
For eg.
Go to SPRO>Controlling>Organization-->Maintain Controlling Area
Here you will find the assignment of controlling area to the company code.
The maintainance view is V_TKA02 and the tables involved are TKA02, TKA01, T001
In this way you can find the relevant tables.
Regards,
Ankur Parab -
How to get the upload file from a html form ?
I have a <input type=file ...> control in my form, and the user use that
control to submit a file
to my web server. The porblem is the getParameter() function of
HttpServletRequest only return the
filename. Does anyone know how to get the file body ?
Frances
http://www.servlets.com/jsp/examples/ch04/index.html#ex04_17
Frances Fan <[email protected]> wrote:
> I have a <input type=file ...> control in my form, and the user use that
> control to submit a file
> to my web server. The porblem is the getParameter() function of
> HttpServletRequest only return the
> filename. Does anyone know how to get the file body ?
> Frances
Dimitri
-
How to get the local file system path of an image that loaded into the image component in cq5?
Hi,
I'm having hard time uploading image from filesystem where as drag and drop works.
I'm not getting a path of image selected from filesystem.
here is my code..
private String populateImage() throws Exception {
if (currentNode != null && currentNode.isNode()) {
Node ImageNode = JcrResourceUtil.createPath(currentNode, "image",
null, "nt:unstructured", true);
imageUrl = ImageNode.hasProperty("fileReference") ? ImageNode.getProperty("fileReference").getValue().getString() : "";
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE IF IS: " + imageUrl);
} else {
imageUrl = properties.get("fileReference", "");
imageUrl = imageUrl.trim();
log.info("MANAGE PROFILE BEAN IMAGE URL INSIDE ELSE IS: " + imageUrl);
return imageUrl;
So if I drag and drop..
ImageNode.hasProperty("fileReference") is returning a valid path
but if I upload an image it is returning Null.
So how to get the path? any suggestions around would be appreciated...When you say path you mean you want the path to print out in your HTML? Is that accurate? If so you generally need to constructe that path based on the path to the current component. So if you component is located at /content/mysite/en/about/mypage/jcr:content/parsys/image then the path to the image would generally be something like /content/mysite/en/about/mypage/jcr:content/parsys/image.img.jpg/1283829292873.jpg. The .img. selector triggers the servlet associated with the foundation parbase - /libs/foundation/components/parbase/img.GET.java. The reason you reference it this way is that there is no filesystem path to the image - it is stored in the repository not on the file system, and it requires a servlet or script to ge the binary from the repository and steam it.
Normally the way you'd construct this is to use the out of the box Image class - so look at /libs/foundation/components/image/image.jsp. Now this example assumes that your component where you loaded the image extends /libs/foundation/components/parbase. If it doesn't then you either have to change your sling:superResourceType to /libs/foundation/components/parbase or some other component that does exten /libs/foundation/components/parbase. -
How to Get the Source File Path in the Receiver Side
Hi Experts,
Here We are Trying to Do How to Get the Sender Information ( File Name & Path ) on the Receiver Side .
According to the Michal Blog
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Here we Are Able to Get only the File Name.
But If I Want to get the Total File Path Also means What Should I Do Here ????
Please Let Me Know
Regards
KhannaKhanna,
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey fkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
DynamicConfigurationKey dkey = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","Directory");
String fname = conf.get(fkey);
Sring path = conf.get(dkey);
String final=fname""path;
return ""final"";
Best regards,
raj. -
How to get the EXCEL file from web site (b2b) into SAP system?
Hi Guys,
I have a requirement of saving the excel file that has been send to SAP system from a B2B site.
Currently there is a call to the SAP system from the B2B site via an RFC function ,this RFC functions gets the excel file as an input to the SAP system,i need to store this Excel file in the SAP (as an excel file itself).
How can i acheive this?
Please suggest.
Thanks ,
SwatiYou can extract a date portion and assign to the variable and then compare with GETDATE()
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Consulting:
Large scale of database and data cleansing
Remote DBA Services:
Improves MS SQL Database Performance
SQL Server Integration Services:
Business Intelligence -
How to get the .class file for the extended Controller .java file
Hi,
I did the below steps.
1. Created New OAWorkspace
2. Created New project
3. Imported the page .xml file
4. Added new .java file by extending the controller class
5. Added code in the .java file.
6. Ran the .xml file
As I copied all the folders from Unix box, the page was opened.
But My question was where can I see the .class file the extended controller. It's a .java file. How to compile and get the .class file for this .java file. If I get this .class file, I can go to the page and click the personlize page. and change the Controller name to the new path by ftp ing the new class to the cust.oracle.apps.pos.changeorder.webiui.
Please let me know how to create the .class file.
Thanks,
HPAll are Java files are stored in JDEV_INSTALL_DIR:\jdevhome\jdev\myprojects\
In your case the path java would be
JDEV_INSTALL_DIR:\jdevhome\jdev\ myprojects \cust\oracle\apps\pos\changeorder\webui\
AND
Once you compile the java file in Jdeveloper, Class files get generated @ below path
In your case the path of class would be
JDEV_INSTALL_DIR:\jdevhome\jdev\ myclasses \cust\oracle\apps\pos\changeorder\webui\
Duplicate Thread-
Thanks
--Anil
http://oracleanil.blogspot.com/ -
How to get the update file without using Nokia Sof...
The network connection is unreliable and downloading the firmware update using PC Suite for my Nokia E90 proves difficult. Does anyone know how I can get the firmware version 300.34.84?
The trouble is Nokia's Software Updater does not accommodate any slight interruption to the connection during the update process. I will update this discussion with what version of PC Suite I have once I get that info.
Any help is kindly appreciatedIn fact, it is not Possible to get the update file without using Nokia Software Updater or you should search the net to find the update files in another place and even you get them, you can not use them with NSU.
You can Update your Device with:
1 - NSU (Nokia Software Update)
2 - FOTA (Firmware Over The Air) for FP2 devices ONLY.
3 - Nokia Care Center
there is not other way to upgrade.
Hope useful for u.
regards
Nokia N79 4GB
SW Version: 32.001 RM-348 MEA -
How to get the XML file if we are using the Product short name.
Hi,
Till now I have used Short name of the Concurrent Program for Code while creating a Data Definition. Now saw a seeded template which has given the Code by Product short name. If we have the concurrent program then it is easy to refer the fields by checking the XML file. In this case how to find the XML file or how to refer all the fields if we have given code with Product short name. I saw this for iReceivables(ARI). Anybody please help me.
Thanks.Hi Siva
Just to clarify, rather than the short name of the conc program there is a shipped data definition that just uses the product short name? What is the data def so I can check it.
Regards, Tim -
How to get the SQL file name in SQL*plus
hi all,
I have created two sql file at C drive as "c:\Createtable.sql" and "c:\Deletetable.sql"
afterwards i open
C:\>sqlplus
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Jan 30 11:37:10 2008
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Enter user-name: scott/tiger
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> @C:\Createtable.sql'
Table created.
SQL> @'C:\Deletetable.sql'
Table dropped.
SQL>My problem is to get the name of the file as "c:\createtable.sql" and "C:\Deletetable.sql" in sql*plus enviornment.
Thanks & Regards
SinghDear Damorgan,
>>your version number to three decimal places
My Oracle DB Version i have already stated in my previous post is 10.2.0.1.0
Actually my problem is to get the sql files name we run in sqlplus enviornment with @ symbol. like
i have created one sql file in c drive as
"C:\Createtable.sql"
afterwords i have connected to sqlplus as
sql> conn scott/tiger
sql>@c:\createtable.sql
Now i want some query to get the name of the file which is run.
In actual my problem is as
i have suppose 10 or more SQL files in some folder ( sql1.sql, sql2.sql, sql3.sql ....).
i created one file to call all the 10 sql files (main.sql)
i have also one track_table which will keep track that which sql file is runned.
I want some automated script which will insert the record in that track_table....... for that i need the name of sql file which is runned.
Hope this will help you.
Thanks & Regards
Singh -
How to get the right file name in an attachment
I have design a program to get the attach file from an attachment. But when I click the link to save the file, the default name of the file is 'attach' whenever I get different files. Who know what is the problem, please tell me the truth.
Here are some codes of the program.
download.jsp
<%="test.doc"%>
web.xml
<servlet-mapping>
<servlet-name>AttachmentServlet</servlet-name>
<url-pattern>attachment</url-pattern>
</servlet-mapping>
AttachmentServlet.java
public void doGet
Message msg = folder.getMessage(msgNum);
// the message I get is right and the name of the file in
// the attach in this message is right too.(I have printed)
Multipart multipart = (Multipart)msg.getContent();
Part part = multipart.getBodyPart(partNum);
ContentType ct = new ContentType(sct);
response.setContentType(ct.getBaseType());
InputStream is = part.getInputStream();
int i;
while ((i = is.read()) != -1) {
out.write(i);
out.flush();
out.close();The trick that I used is to append the URL with the name of the file. So if your url is "http://domain.com/attach", use "http://domain.com/attach/filename.doc". IE and Netscape parse the URL to determine what the filename is, so by placing this text at the end, you essentially let the browsers know what the filename is. :)
I have design a program to get the attach file from an
attachment. But when I click the link to save the
file, the default name of the file is 'attach'
whenever I get different files. Who know what is the
problem, please tell me the truth.
Here are some codes of the program.<< snip >> -
How to get the Output File Name as One of the Field Value From Payload
Hi All,
I want to get the Output file name as one of the Field value from payload.
Example:
Source XML
<?xml version="1.0" encoding="UTF-8" ?>
- <ns0:MT_TEST xmlns:ns0="http://sample.com">
- <Header>
<NAME>Bopanna</NAME>
</Header>
</ns0:MT_TEST>
I want to get the Output file name as " Bopanna.xml"
Please suggest me on this.
Regards
BopannaHi,
There are couple of links already available for this. Just for info see the below details,
The Output file name could be used from the field value of payload. For this you need to use the UDF DynamicFile name with below code,
// Description: Function to create dynamic Filename
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File" , "FileName");
conf.put(key,a);
return "";
With this udf map it with the MessageType as
(File Name field from Payload) > DynamicFileConfiguration>MTReceiver
Thanks
Swarup
Maybe you are looking for
-
Hi, Requirement We are using Adobe acrobat x pro 10.1.1 licenced version,from our application,we have to fill data dynamically in to the text boxes. We had set the text box font as "VectoraLTStd-Roman",we need to display the text with font name as "V
-
Scrollpane, ScrollDrag and buttons
I think I already know the answer to this question but I thought I'd ask just to be sure. I have a scollpane loaded and I have buttons in the content( a map) thats loaded in the scrollpane. The buttons work fine until I try to turn on scrolldrag.
-
Imac mid-2007 installation disc
Is it possible to get another installation disc for my intel imac ? I get one of the file is corrupted and i need to get it changed. Thank you .^^.
-
Browser appearance is faulty, font too big and images crowded
Need to know how to fix appearance of browser, it's too BIG
-
Weblogic.system.home property
Hi, I used to launch weblogic 5.1 from a directory other that the wl installation directory by passing -Dweblogic.system.home=myDirectory when launching the server. This doesn't work with 6.0. I get the following exception (note that if I start wl fr