Multiple languges used while uploading a file using java appn

Hi everybody,
i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other
it was saving with different format other than chiness in the database, can any one help me out ... i need the exact language when i upload the files
thank you very much

Santhosh_25 wrote:
actually i have asked the users for the languages... they told some languages like chinees,japanese,german,french,koriean,spanish,italian,dutch,russsian,englishThat isn't deterministic.
Again, this is pointless unless it is deterministic.
But lets say that each language group only uses a single character set.
And each language group stores their files in a specific directory (or server).
That allows you to deterministically identify the character set of the file.
So you can then read each file by using a text reader from the java.io package with the correct encoding set.
This works because it is determinstic.
The following will NOT work.
You have a directory with a bunch of files with completely random content in different languages. There is NO way to write a program that will correctly handle those.
So, again, the first step before doing anything in java is figuring out how you will differentiate the different files.

Similar Messages

  • Error while uploading a file using ke13 transactoin

    Hi..
    We have the following error when uploading a project plan by cost element excel upload using KE13 transaction...
    There is a z program that calls this ke13 program while uploading. The excel file is split into x files and uploaded..
    THe error is: Quantity Unit HR cannot be converted to & and error occured when generating data for planning processor...
    Any idea if someone face similar situation..
    Any clue would help us..
    Thanks,
    Kanthi.

    Hi,
        Covert quantity to char and upload the data.
    Regards
    Amole

  • Error while uploading tiff file using report "RSTXLDMC"

    Hi Experts,
    I am trying to upload .tif file into SAP usinf report "RSTXLDMC".
    Getting below error.
    Uploading TIFF Files to SAPscript Texts
    Load File
    c:\file.tif
    The file contains    134,412  bytes
    This is a TIFF file with MOTOROLA byte order
    First IFD offset:                                        8
    Reading IFD from offset          8  Number of Tags         13
    ImageWidth:                                          5,120
    ImageLength:                                         6,590
    Compression:                                             2
    Photometric Interpretation:                              0
    Number of StripOffsets:                                  5
    RowsPerStrip:                                        1,636
    Number of StripByteCounts:                               5
    XResolution:                                           600  /          1
    YResolution:                                           600  /          1
    ResolutionUnit:                                          2
    This is a baseline TIFF 6.0 BILEVEL file
    TIFF upload not possible, compression type 2 not supported
    How to solve this ????
    Please help.
    Regards,
    SVS

    Dear Vijay,
    I have one tiff 6.0 image which i am passing to program "RSTXLDMC".
    I have not done any conversion or changes in the file.
    Regards,
    Sagar Sontakke

  • Exception while uploading certain files using Attachment Table.

    Hi,
    I have a very peculiar problem. We have implemented an AttachmentTable functionality in on our pages. It supposed to allow the user to attach either a text, URL or a File. The implementation works perfectly except for the cases mentioned below.
    Whenever, I try to upload some specific files, the system crashes and either gives a ArrayIndexOutOfBounds exception or shows Page cannot be displayed. This is only for some specific files. Most files work perfectly. This happens only in the server, doesnt happen in local. The problem is not with the size either, as I have uploaded bigger files successfully. Although, I did not develop the page, I have been informed that there is no customization. All the functionality is implemented the way it is described in the user guide.
    So, are there any known issues with the Attachment functionality? Has any come across anything like this? I did a very thorough search of the forum before posting, but if I have missed any existing thread about this, please point out.
    Any help would be greatly appreciated.
    Thanks.

    As you are saying This is only for some specific files. if you give any idea about files behaviour then it help us to give solution. Check by uploading same file with rename it.
    Thanks

  • Error while uploading *.BMP file using SE78

    Hi
    I am trying to upload a BMAP file from presentation server onto the document server using SE78.
    I am facing an error saying
    "This is not a *.BMP file(they begin with <> "BM")"
    Message no. TD874
    I have the necessary company logo in this file and I want to put this in the sapscript.
    Is there some formatting that needs to be done to the bitmap file before importing in SE78.
    Please help!
    Thanks
    Bala

    hi
    Convert BMP from <b>Command prompt using ren command</b>
    then follow below process
    Go to transaction SE78.
    Follow the path given below (on the left windows box) :-
    SAPSCRIPT GRAPHICS --> STORED ON DOCUMENT SERVER --> GRAPHICS --> BMAP
    Enter the name of the graphics file on the right side and Go to the menu GRAPHIC --> IMPORT
    The program is RSTXLDMC, the logo needs to be save in .TIF format.
    Use transaction SE78 to inmport graphics to SAP.
    In the form painter, you can either include directly to the form using menu Edit->Graphic->Create or using the INCLUDE statement in a window.
    To use an INCLUDE stanment, goto into the woindow script editor and use menu Include->Graphic. The include can look like this for a bitmap:
    /: BITMAP MYLOGO OBJECT GRAPHICS ID BMAP TYPE BMON
    regards
    vinod

  • How to give the unix server path while uploading a file

    Hi All,
    Am very new to this file operations in Oracle.
    here i have a requirement like we need to upload table to unix server using oracle. I have read about File operations in Oracle but in that i did not understand one point like how and where to give the unix server path .. like username@servername and Path where that file needs to be stored.
    I have googled for file operations in oracle.. in that there are asking me to create one object like as follows
    Create or replace directory rtvms2 as 'MYDIR:'
    The MYDIR: i need to use while uploading the file .
    UTL_FILE.FOPEN('MYDIR:','Report.txt','W');
    My Question is how and where should i give my unix server information .?
    and how and in which step oracle connect to unix server and upload the file.?
    Can any one please help me.
    Thanks
    Sree

    you're close...
    (this example shows it for a windows server, but you just replace the windows directory path with a unix server path)
    CREATE OR REPLACE DIRECTORY mydir AS 'c:\myfiles';Note: This does not create the directory on the file system. You have to do that yourself and ensure that oracle has permission to read/write to that file system directory.
    Then, grant permission to the users who require access e.g....
    GRANT READ,WRITE ON DIRECTORY mydir TO myuser;Then use that directory object inside your FOPEN statement e.g.
    fh := UTL_FILE.FOPEN('MYDIR', 'myfile.txt', 'r');Note: You MUST specify the directory object name in quotes and in UPPER case for this to work as it is a string that is referring to a database object name which will have been stored in uppercase by default.
    For security reasons, Oracle requires a directory object and it is that object that points to the actual path (it's up to you to make sure that path is valid and exists on the operating system). Then the object can have read and write permissions given to relevant database users as appropriate i.e. you may want one user to only be able to read files from that location whilst another user can read and write. You still need to ensure operating system level permissions exist for that path for the operating system user under which oracle was installed (on unix that's likely to be an "oracle" user).

  • Different languages used while uploading file from java Application

    Hi everybody,
    i have a problem with multiple languages , let me clear you the question, i were developing a java application using spring ,hibernate frame works, so i got a problem while uploading a file with chinees language or other
    it was saving with different format other than chiness in the database, can any one help me out ... i need the exact language when i upload the files,and when i get the data from DataBase which is in chinees language is '걨' going to be like as '???'
    thank you very much

    Santhosh_25 wrote:
    using utf-8 characterSet, but its not showing properly
    thank youOkay.. the problem with your browser settings.. (not sure)..
    In firefox try to set character encoding...
    go to View--->Character Encoding--->Unicode (UTF-8)..
    In IE
    go to View--->Encoding-->More-->Unicode (UTF-8)
    set this and try.

  • Jlaunch process using High CPU, while uploading the files in XI system

    Hi,
    we are facing  jlaunch high cpu usage problems, while uploading the files of more than 25MB, in XI system. PIAFUSER is running on PRIV mode and huge java core dumps and heapdumps are  getting generated in server0 node
    error message->  - Out of memory situations running XI
    Exception thrown [Fri Sep 30 13:57:27,855]:Exception thrown by application running in JCo Server
    java.lang.Exception: java.lang.OutOfMemoryError
         at com.sap.engine.services.rfcengine.RFCDefaultRequestHandler.handleRequest(RFCDefaultRequestHandler.java:237)
         at com.sap.engine.services.rfcengine.RFCJCOServer$J2EEApplicationRunnable.run(RFCJCOServer.java:254)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(AccessController.java:219)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    first , we tested in Quality system, where,we are getting same problems as well.
    SAP Note 146289 - Parameter Recommendations for 64-Bit
    increased em/intial_size_MB  from 512MB to 2 GB and em/global_area_MB value from 96 to 256
    SAP Note 723909 - Java VM settings for J2EE 6.40/7.0
    we added some jvm parameters in confitool
    -Djava.awt.headless=true
    -XX:+UseParNewGC
    -XX:+PrintGCTimeStamps
    Present  JVM values in XQ1 system..
    Xmx  value 3072
    xms  value 2048
    xmn  value 1000
    we have tested JCo RFC's  AI_DIRECTORY_JCOSERVER and AI_RUNTIME_JCOSERVER , connection test was OK.
    We increased parameter com.sap.aii.ib.client.jnlp.j2se.maxheapsize from 512m to 800m
    Please advice me.. how to proceed..
    regards,
    balaram

    Hi Balaram,
    Kindly review below note, Hope it suits.
    716927 - Overview of AIX JVM for NetWeaver 2004 and 7.0 (2004s).
    Regards,
    Mani

  • Issue while uploading .TIFF file into Standard text using RSTXLDMC

    Hi All,
    We are facing issues while uploading .TIFF file into standard text through program RSTXLDMC.
    Getting the following error.
    TIFF format error: No baseline TIFF 6.0 file.
    The image is a colored one.
    Please provide me solution if anyone has worked in this area.
    Thanks in Advance,
    Anand Raj Kuruba.

    Hi,
    Often this error occurs because the TIFF file you have has been saved with some form of compression.  You need to open in a picture edit program and save as TIFF making sure options are set so there is no compression.
    Andrew

  • Issue while uploading DME file generated from SAP using program RFFOAU_T

    Hi Friends,
    I ran f110 for our australian company code and able to generate DME file for making supplier payments successfully.
    Encountered problem while uploading this file into our Bank Portal, upload is unsuccessful, status is showing as  "Requires Repair u201C
    I called the bank customer service and they told me that ,
    We need to enter in our SAP the Bank ID ,
    We have to enter there : NAB
    Customer service told me that their bank is looking for Bank ID ,
    But canu2019t see it , so the payment is not going through.
    Can you please help me that  where in SAP Bank ID should be entered, so as to upload this file successfully.
    Thanks for your help.
    Regards
    Anil

    Hi Anil,
    While creating House Banks you can find Button called Data Medium Exchange. There is Bank Id field.
    Try it once
    reg
    vishnu

  • Upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy

    Hi All,
    upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy button.
    This is the issue which I am facing while working with SharePoint 2010. In a sharePoint 2010 document library I am having an excel file and I am trying to open it from Windows 7 and is office 2010.
    I cam e across few suggestion as mentined below but unable to find the location where to do
    Go to Resource Policies > Web >
    Rewriting > Custom Headers > (if 'Custom Headers' is not visible, click
    Customize on the right top to enable the view).
    Create a new policy with the Resource as <fully qualified domain name of the SharePoint server:*/*> (for example https://sharepoint.juniper.net:*/* ).
    Create the action as Allow Custom Headers.
    Apply the settings to the required roles.
    Please suggest.

    Hi rkarteek
    All things you have to do is as follows:
    1. Open regedit.exe
    2. Naviagate to following key:
    [HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Common\Internet]
    3. Click Edit Menu -> New -> DWORD with name of "FSSHTTPOff"
    (without quotes)
    4. Click on "FSSHTTPOff" and enter value of 1
    5.
    Close any Office Applications and browser sessions
    6. Try to reopen your document (no more read only or failure to upload)
    have a nice day!

  • Error while uploading the data using FM"upload"

    Hi,
    I encountering an error while uploading the data using text file with FM " UPLOAD"
    The error is "File does not exist or cannot be opened "
    But there is a file with name and extenstion right.
    Regards
    Vishnu

    You have to create RC29P-IDNRK(var) using concatenate statement. Try this.
    DATA: new_mark TYPE bdcdata-fnam.
    CONCATENATE 'RC29P-IDNRK(' var ')' INTO new_mark.
    PERFORM bdc_field USING new_mark W_BOM-QTY

  • Uploading image file using tcode se78  occuring some   Error

    Hai Gurus
          I am uploading image file using tcode se78 but while Uploading it giving some error i cant resolve the problem so any one help me plz
    Error    "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

    Hai
    Thanks
    I had done in all method but i can't save it 
    error is coming ..so plz help me to upload the image
    Error "Graphic LOGO could not be saved (2LOGO)"
    Regards
    Selvendran

  • How to upload html files using Weblogic Bulkloader

    I hav uploaded image files using bulkloader.
    however with html files am facing a prob.
    only the file structure gets created but there is no html file present inside.
    in
    Filename.html.md.properties i agv the followin
    nodeType=html
    lifecyclestatus=2
    File=C:\ContentRepository\a.html
    encoding=UTF-8
    charset=us-ascii
    mimeType = text/html
    shud i add some more properties...

    You have to do this your self by either (as vinod said) using a different component (not present in adf) or implementing this:
    1) allow the user to select multiple filenames (somehow)
    2) zip them together
    3) upload the zip
    4) unpack the zip on the server
    5) work with the files
    Timo

  • Uploading a file using PRC

    I am trying to upload a file using PRC, I am using .Net 2.0. Here is my code
                IRemoteSession rSession = base.portletContext.GetRemotePortalSession();
                IDocumentManager dManager = rSession.GetDocumentManager();
                IRemoteDocument rDocument = dManager.CreateRemoteDocument(4079, 217, Server.MapPath("temp.txt"));
                rDocument.SetType("http://www.plumtree.com/dtm/mime", "text/plain");
                rDocument.SetOverrideName("Trying to upload");
                rDocument.SetOverrideDescription("No Description");
                int docID = -1;
                try
                    docID = rDocument.Save();
                catch (Exception ex)
                    Response.Write(ex);
                Response.Write("<BR><BR>" + docID);
    The code always falis with following errorPlumtree.Remote.PRC.PortalException: Exception of type 'Plumtree.Remote.PRC.PortalException' was thrown. ---> System.Web.Services.Protocols.SoapException: java.rmi.RemoteException: Error in function PTDataSource.ImportDocument (vDocumentLocationBagAsXML == '1001text/plainD:\Plumtree\RemotePortlets\FileContainer\temp.txt', lDocumentTypeID == 104, pCard == com.plumtree.server.impl.directory.PTCard@65e83f, bSummarize == false, pProvider == null): Error in function PTDataSource.ImportDocument (vDocumentLocationBagAsXML == text/plain1001D:\Plumtree\RemotePortlets\FileContainer\temp.txt, lDocumentTypeID == 104, pCard == com.plumtree.server.impl.directory.PTCard@65e83f, bSummarize == false, pProvider == null): Error in function SOAPEnvelope.Restore (arrayText == [B@7aa6f0): SOAP fault: faultcode='soapenv:Server.userException' faultstring='java.lang.NullPointerException' at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at com.plumtree.remote.prc.soap.DirectoryAPIService.submitRemoteDocumentMerge(String sLoginToken, Int32 nDataSourceID, Int32[] nFolderIDs, String sLocation, String sTypeID, String sTypeNameSpace, String sOverrideName, String sOverrideDesc, String sLanguage, Boolean bMergeACLs) at com.plumtree.remote.prc.soap.DirectoryProcedures.SubmitRemoteDocument(String sLoginToken, Int32 nDataSourceID, Int32[] nFolderIDs, String sLocation, String sTypeID, String sTypeNameSpace, String sOverrideName, String sOverrideDesc, String sLanguage, Boolean bMergeACLs) --- End of inner exception stack trace --- at Plumtree.Remote.PRC.DocumentWrapper.Save() at Gov.NSW.CCSU.Portal.FileContainer.FileBrowser.cmdUpload_Click(Object sender, EventArgs e) in D:\MyWorks\CCSU\Portal\ALUI\Portlets\FileContainer\FileContainer\FileBrowser.aspx.cs:line 48
    I thought that there might be some problem in getting the file from the client,
    so i used my own uploading routines for copying the
    file in current App's directory,
    even then i get the same error.
    Any help is greatly appreciated!!!
    Thanks,
    Avi
    [pre]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello Dmitry,
    Thanks a ton for your patience!
    I have already tried step 1, still same error.
    I have already tried step 2 and it works using Portal UI
    Knowledge Directory-> Going to that specific folder - having ID 4079 -> selecting same file from same network share
    Followed Step 3 and the result confirmed that I am using the correct DataSourceID
    Here is the small piece of code
    <Code>
    IRemoteSession rSession = this.portletContext.GetRemotePortalSession();
    IObjectManager oManager = rSession.GetObjectManager(ObjectClass.DataSource);
    IObjectQuery oQuery = oManager.QueryObjects();
    for (int i = 0; i < oQuery.GetRowCount(); i++)
    Response.Write(oQuery.GetRow(i).GetName() + "-" + oQuery.GetRow(i).GetID() + "<BR>");
    </Code>
    Step 4 - We are not using ALI Content Service Windows File. Do you reckon I require this for Upload?
    Step 5 – I ran PT Spy, reproduced the problem but couldn’t find any exception(On the portal server).
    Let me give you a little insight of our dev environment here. Portal Server along with Remote Apps are installed on ServerX and Studio, Content Upload, Collaboration, Publisher are installed on ServerY. To neglect any permission issue I created the network share on ServerY as the Content Upload Service runs on Server Y.
    Running PT Spy on other server (running Content Upload Service) showed few errors but I can not make much sense out of those.
    What I can understand is
    1.     It makes the call to [submitRemoteDocumentMerge] with correct parameters.
    <Parameter List>
    nDataSourceID = 217
    nFolderIDs = (1) { 4079 }
    sLocation = \\ccsu-gmt-952.gnet.ccsu.nsw.gov.au\TempShare\temp.txt
    sTypeID = text/plain
    sTypeNameSpace = http://www.plumtree.com/dtm/mime
    sOverrideName = Trying to upload
    sOverrideDesc = No Description
    sLanguage = (null)
    bMergeACLs = false <ptLogMsgEnd>
    </Parameter List>
    2.     But the call fails with following stack trace (copied partially)
    <Stack Trace>
    com.plumtree.server.impl.webservice.PTWebService     SOAP call failed, an internal error occured on the remote server. Attempting to parse the SOAP fault for detailed error info. Web Service='File Upload Web Service', SOAP Action='urn:plumtree-com:DocumentProvider.AttachToDocument', URL='http://ServerY:11910/ptupload/services/DocumentProvider'
    </Stack Trace>
    3.     Next line shows following Stack Trace
    <Stack Trace>
    com.plumtree.server.impl.soap.SOAPEnvelope     Error in function SOAPEnvelope.Restore (arrayText == [B@7bd8a5): SOAP fault: faultcode='soapenv:Server.userException' faultstring='java.lang.NullPointerException'
    com.plumtree.server.impl.soap.OpenSoapException: SOAP fault: faultcode='soapenv:Server.userException' faultstring='java.lang.NullPointerException'
    </Stack Trace>
    4.     Then it starts giving the same error again.
    5.     I thought it might be expecting a value in Language Parameter, so I Passed US-en but still it screams.
    I can send you the entire trace file if that helps.
    Thanks a lot for helping so far, Plumtree is pretty new to me and I am finding it difficult to get my steps going.
    Thanks,
    Avi
    Edited by asolvent at 03/24/2008 10:05 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Maybe you are looking for

  • How do I delete an empty icon page on my iPhone

    I have somehow inserted an empty icon page ahead of my normal first page of icons on my iPhone 5. iTunes shows the page at the end of the others, but even after syncing, the empty page is at the beginning, ahead of my search page. Does anyone know ho

  • How do I get iTunes 11.2.2.3 to see my iPad mini?

    Since the last 2 iTunes updates, my PC (Windows 8.1) can see my iPad, but iTunes can't.  I've tried the suggestions on Apple Support, which resolved the issue for my iPods, but not for the iPad.

  • How to direct contents of file to stdout?

    Hello I'm trying to get contents of a file to stdout. The filename is "pins.txt", text consists of only one line let's say "abc". Here's what I wrote so far: File inputFile = new File("pins.txt"); FileReader in = new FileReader(inputFile); int c; whi

  • UI defaults on SQL Workshop

    What type of table is added to 'Tables with UI Defaults' list on SQL Workshop? After installing a new htmldb, EMP table have already been listed on it. However, behavior when tables are created using Data Workshop is different, some goes into the lis

  • Using 'My Thoughts' App to design a poster, how do I print it onto A3 paper for uni work?

    Hi, I have only had my Macbook for a month so still getting used to it. I would like to print a poster I am making using the 'My Thoughts' App onto A3 paper - how would I go about doing this? Wold it be printing it onto A4 paper and then enlarging it