Saving Text To Server

I just want to take text from a richtextbox and save it to my
server and then with another button get it back from the server
into the richtextbox. I am long elsewhere but new to Flex 2.
Thanks,
JW

quote:
Originally posted by:
notrem
I just want to take text from a richtextbox and save it to my
server and then with another button get it back from the server
into the richtextbox. I am long elsewhere but new to Flex 2.
Thanks,
JW
There are three ways to talk with server.
1. HTTPRequest 2. Web Service 3. Remote Component
For 2nd option you have to write web service in web server.
Call that web service and pass the content what you want to
save. Either you can save the content in File System or in
database.
Hope this will help you.
-Nirav

Similar Messages

  • Viewing HTML page saved  on the server from the browser

    Hi all
    In my application i am having some HTML pages saved on the server. I had given an option to the user to view the HTML page from my application. behind the scene what i am doing is that the view request will get handled by a servlet and from that servlet iam locating the HTML page on the server directory and sending the HTML page to browser by using the Servlet OutputStream. The HTML page is shown on the browser but the attached images are not shown. The images are also there in the server directory and are refered in the HTML file correctly. When i directly open the HTML file then the images are shown correctly.
    Can anyone suggest wat's wrong there.
    The code i m using is
    ServletOutputStream out=response.getOutputStream();
                        if(format.equalsIgnoreCase("pdf"))
                             logger.info("Seleted format is pdf..\n");
                             response.setContentType("application/pdf");
                        else
                             logger.info("Seleted format is html..\n");
                             response.setContentType("text/html");
    String file = ReportingConstants.URL_GENERATEDREPORTS+reportPath+itemName;
    // file : HTML file absolute path as string.
                        URL url=new URL(file);                    
                        BufferedInputStream bis=new BufferedInputStream(url.openStream());
                        BufferedOutputStream bos=new BufferedOutputStream(out);
                        byte[] buff = new byte[2048];
                        int bytesRead;
                        while(-1 != (bytesRead = bis.read(buff, 0, buff.length))) {
                             bos.write(buff, 0, bytesRead);
                             bos.flush();
                        }

    You have to undertsand how the browser handles images and other resources in a HTML page. In the HTML there is an image tag that has a url to an image which can be a reletive url or an absolute url (starts with a "/").
    If the url is a relative url the browser interprets the url as being relative to the url currently displayed in the address field discarding the last element of the url . So if the url in the address bar is http://www.myserver.com/myapp/mypage.html and the relative url is images/myimage.jpg, the browser will submit a request to the server for http://www.myserver.com/myapp/images/myimage.jpg
    Now let's say that you are call mypage.html from a servlet that has the url http://www.myserver.com/myapp/servlets/myservlet. Then when the browser tries to retrieve myimage.jpg it will use the url http://www.myserver.com/myapp/servlets/myservlet/images/myimage.jpg and since this is incorrect it will not be able to display the images.
    One solution to this is to change all of the image urls to absolute urls. That is the start with a slash where the slash represents the start of the url after the application domain name. For example you used an absolute url for myimage.jpg it would look like /images.myimage.jpg and when accessing the page through the servlet url (http://www.myserver.com/myapp/servlets/myservlet) the browser will discard everything after http://www.myserver.com/myapp and look for the image at http://www.myserver.com/myapp/images/myimage.jpg which is the correct url.
    A second solution is to use the HTML BASE tag which tells the browser not to interpret the image tag urls (and other resourses) using the current url in the address bar but to use the url supplied in the HTML BASE tag. The browser will still perform the same process for relative urls but now relative to the BASE tag url. Since the BASE tag url will be the same every time the page is accesssed the images should be correctly accessed no matter how the page is accessed (eg directly, using RequestDistpatcher or via your servlet)

  • Error while saving text as attachment

    Hi All,
      When a layout is generated. I get the following error :
    Error while saving text as attachment , Size of the attachment is maximun than the size allowed.
    I guess the generated layout is automatically saved as attachment. Can any one suggest how to disable the option of automatic saving as attachment
    Thanks ,
    Kaushik

    Hi,
    if you want to keep the automatic saving as attachment you might check note 599680.
    The saving is done normally in method TextGeneration in the underlying Business Object, e.g. BOSALESDOCGEN, BOACTIVITY or BOSERVICETRANSACTION. There you will find the according code lines in the end.
    Regards,
    Wolfhard

  • Hyper link of public image(hyperlink or image) can not be saved on windows server 2012 and sharepoint 2010 problem

    hyper link of public image(hyperlink or image) can not be saved on windows server 2012 and sharepoint 2010 problem, is this a bug?
    thanks for any reply.
    Rosone

    It is not a bug, you might be using IE in Windows server 2012 and and browser might be restricting your site actions to respond properly.
    Check this in a different browser or access site in a differ OS.
    Adnan Amin MCT, SharePoint Architect | If you find this post useful kindly please mark it as an answer.

  • I am a bit ignorant when it comes to my iphone 4. Can somone help me delete saved text messages? I have tried to delete them one by one in my messages, but it still says that I have 2.3 saved messages. I just want to free up space  on my phone.

    Dearest Ones in the Apple Tech World,
    I need to free up space in my storage, and I can do that if I can figure out how to delete my saved text messages. Anyone out there know how in the world I can accomplish this?
    I have tried to delete them one by one, but it still says that I have 2.3 GB of saved messages!
    I am not the saviest when it comes to operating this phone. Any help would be appreciated!
    THANKS SO MUCH!

    There's no way to delete all message threads at one go. You can however do one contact thread at a time.
    In Messages app where you see a list of messages from different contacts,  tap Edit (top left), tap the red (on the left), then tap the red Delete button on the right.

  • The document could not be saved. The server said: "The operation failed because an unexpected error occurred. (Result code 0×80020005)" Please ensure you have completed all required properties with the correct information and try again.

    I am having problems  saving documents back to SharePoint when any of the document properties (metadata columns) are set to be "managed metadata". The check-in/save fails with error:
    The document could not be saved. The server said:
    “The operation failed because an unexpected error occurred. (Result code 0×80020005)”
    Please ensure you have completed all required properties with the correct information and try again.
    I have seen similar threads that suggest this is a known issue with this version of Acrobat but I would like conformation from Adobe that this is a known issue and whether it is fixed in a newer version?
    Adobe Acrobat version 10.1.13
    SharePoint 2010

    Hi quodd,,
    We are sorry for the issue being faced by you. I need some information from you so that I take further steps:
    1. Which Adobe product are you using Acrobat or Adobe reader- what is the complete version?
    2. How are you opening and saving the PDF, the exact workflow?
         Are you doing it from within Adobe Reader/Acrobat application or opening it from browser, doing changes and saving it using browser itself.
    3. Can you try to save a PDF to library with Custom template and managed metadata columns using browser directly.
    4. Please verify that columns name do not contain spaces or some other special characters.
       Can you try to save PDF to library with Custom template and just a single managed metadata column  with a simple name
    Thanks,
    Nikhil Gupta

  • CLIENT_SEND_FAILED error code: 500, error text: Internal Server Error

    Hi,
    Developed Proxy <-->PI<-->JDBC SELECT scenario and getting the following error.
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="INTERNAL">CLIENT_SEND_FAILED</SAP:Code>
      <SAP:P1>500</SAP:P1>
      <SAP:P2>Internal Server Error</SAP:P2>
      <SAP:P3>(See attachment HTMLError for details)</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Error while sending by HTTP (error code: 500, error text: Internal Server Error) (See attachment HTMLError for details)</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    When I cross checked the JDBC Receiver communication channel in Runtime Work Bench
    request and response were successfull. RWB shows the following message.
    2009-06-12 09:34:50 Information The message was successfully received by the messaging system.
    2009-06-12 09:34:50 Information Message successfully put into the queue.
    2009-06-12 09:34:50 Information The message was successfully retrieved from the request queue.
    2009-06-12 09:34:50 Information The message status was set to DLNG.
    2009-06-12 09:34:50 Information Delivering to channel: DB2ReceiverTableSPT
    2009-06-12 09:34:50 Information JDBC Adapter Receiver processing started, required QoS BestEffort
    2009-06-12 09:34:50 Information JDBC Adapter Receiver Channel DB2ReceiverTableSPT:
    2009-06-12 09:36:35 Information Database request processed successfully.
    2009-06-12 09:36:35 Information The message was successfully delivered to the application using connection JDBC_http://sap.com/xi/XI/System.
    2009-06-12 09:36:35 Information The message status was set to DLVD.
    I had gone thru all the previous threads related to 'CLIENT_SEND_FAILED' but
    those did not solve my problem.
    Can some one help me to solve this issue.
    Thanks,
    Vijay.

    I made necessary changes as per the blog. Appended '_response' for JDBC response structure.
    Still I am facing same problem.
    Strange....delibarately gave the link so that you can cross-check the JDBC config on receiver side...I assume that the proxy is configured properly with the Sync communication....also mapping is done accordingly...
    Regards,
    Abhishek.

  • How to convert RAW files that saved in UCCX server to wav file?

    Hi all,
    How we can covert the RAW files that are saved in UCCX server to wav file by using command prompt in UCCX servers. Or is there some other way? So that we should be able to hear the sound of these files.
    C:\Program Files\Cisco\Desktop_Audio
    Regards
    Ali Raza

    Hi,
    I use Switch File Audio Convertor from NCH Software to do this.
    It is a commercial product but there is a time limited evaluation and if you decide to keep it it is only $30.
    http://www.nch.com.au/switch/index.html
    It is great for converting audio files to the correct format for music on hold as well.

  • Copying saved texts to computer?

    I have a lot of saved text messages on my blackberry curve 8330.  I need to get them all on a computer so I can print them out.  I was able to go to each message and forward as an email.  But, in my saved messages it saved the whole conversation I had with the other person which I need printed out.  But when I forward each text as an email it only forwards the first message not the whole conversation.  Is there any way I can rip all these saved texts off the phone onto a computer so I can have the entire conversations?  Any help would be greatly appreciated.  

    I use this program to print out the information I may wish to keep on file http://www.processtext.com/abcblackberry.html. I have used this for a while now and it always works so long as you make regular backups to allow it access. All you need to do is in the help file included with in it, Yes it does cost something but also does quite a few other things also so it is worth the money spent on it, also useful for restoring items that were deleted from calendar etc.
    When you accept a solution from anyone could you please select the appropriate box.
    Also, select the appropriate Kudos box and click it for the person’s solution you accepted thank you.
    Ian H

  • Problem with formatting the saved text to hard disk

    I use a modified code from Macromedia for saving the content of a text filed on hard disk. See code at the end.
    The code works fine and a text file is saved in the given location on the hard disk.
    The problem is that all of the content of the text field appears in a very long single line.
    The line breaks in the text field does not appear at all in the saved text file.
    for example:
    if the following is the the content of the text filed on the stage:
    abcdef
    jhijklm
    nopqrst
    uvxwyz 
    then the saved file is like: abcdefjhijklmnopqrstuvxwyz 
    No line break happens! How can this be fixed?
    Thanks for any suggestions.
    HR
    ******************* Here is the code *************************
    --this handler saves the contents of the field into a text file called 'output.txt'
    --it over writes anything that is in the 'output.txt' file.
    global myFile
    on mouseUp
      if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
      myFile = new(xtra "fileio")    -- Create an instance of FileIO
      openFile (myFile, the moviePath &"output.txt",0)--Open the file with R/W access
      delete(myFile) --deletes the file
      createFile (myFile, the moviePath &"output.txt) --creates the file again
      openFile(myFile,the moviePath &"output.txt,0) --Open the file with R/W access
      mySaveString = member("input").text --puts the contents of the field 'input' into the variable mySaveString
      writeString(myFile,mySaveString) --writes text to the file
      closeFile(myFile) -- Close the file
      myFile = 0 -- Dispose of the instance
    end

    You need to replace the carriage returns (that aren't followed by a line feed) with the CRLF combination. Feel free to place the following JavaScript handler into a movie script and call it prior to writing your string to disk:
    function jsStringToDOS (str) {
      return str.replace(/(\x0D)(?!\x0A)/g, "\x0D\x0A");
    global myFile
    on mouseUp
      if objectP(myFile) then set myFile = 0  --Delete the instance if it already exists
      myFile = new(xtra "fileio")    -- Create an instance of FileIO
      openFile (myFile, the moviePath &"output.txt",0)--Open the file with R/W access
      delete(myFile) --deletes the file
      createFile(myFile, the moviePath &"output.txt") --creates the file again
      openFile(myFile,the moviePath &"output.txt",0) --Open the file with R/W access
      mySaveString = member("input").text --puts the contents of the field 'input' into the variable mySaveString
      mySaveString = jsStringToDOS(mySaveString) -- convert to Windows CRLF characters
      writeString(myFile,mySaveString) --writes text to the file
      closeFile(myFile) -- Close the file
      myFile = 0 -- Dispose of the instance
    end

  • Why can I not open files saved on a server?

    Why can I not open files saved on a server?

    I think I figured it out.  I set the compatibility mode to Windows Server 2008 (which is the OS on the server we are using) and it opened just fine.  Whoop Whoop.  Thanks for your help.
    Lisa

  • HT204150 I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    I'm having problems with random contacts disappearing from icloud. I have a saved text from a contact that displays her info but when I look for her in contacts it's missing.

    It is locked to your sisters carrier.
    She would have to ask her carrier if they unlock iPhones and if she qualifies for this service.

  • Saved texts deleted after turning iMessage off

    All my saved texts were deleted after I turned iMessage off.  Anyone know why and how to get messages back without restoring?

    If I try my app with the DefaultGrayPhone or QwertyDevice, it works ok, the data keeps stored after a turn the mobile off, like the DefaultColorPhone used to work.Looks like you're using WTK - right? When I had problems like you describe, I typically cleaned up appdb folder.
    appdb folder is usually located in WTK installation directory. In some versions it could be placed somewhere in "user documents" directory.
    Typically, I simply removed "DefaultColorPhone" subfolder of appdb. To be on a safer side, you better make a backup copy of this folder prior to its deletion.
    Somewhat similar problem and solution were discussed before: [click here to get to older thread|http://forums.sun.com/thread.jspa?forumID=76&threadID=5298134]
    HTH

  • Data types, msg types, where these data saved in the server?

    In XI we are creating the data types, msg types, ...... where these data saved in the server ?

    Enter CL_SRAPI* in the SE24 transactions and make your search as shown below.
    CL_SRAPI_DATA_TYPE----
    data type
    CL_SRAPI_DATA_TYPE_ENH----
    data type  enhancement
    CL_SRAPI_FAULT_MESSAEG_TYPE-----fault message type
    CL_SRAPI_MESSAGE_TYPE----
    message type
    CL_SRAPI_INTEGRATION_SCENARIO----integration scenario
    Communication channels are saved in the SMPREL3 database table.

  • Open Excel with out saving on presentation server

    Hi All
       I have requirement like when I execute the report, result should open in Excel sheet automatically with out saving on Presentation server.
       Please help me. Thanks in advance.
    Regards
    Rama

    HI Arun
        Thanks for your help, but It is opening blank Excel sheet, Internal table data not loading. I am copying the FM how I used in report. Please help me if any thing worng.
    CALL FUNCTION 'FTBU_START_EXCEL'
      EXPORTING
       CHECK_VERSION             = ' '
       DATA_NAME                 = ' '
        DATA_PATH_FLAG            = 'W'
        DATA_TYPE                 = 'ASC'
       DATA_BIN_FILE_SIZE        =
       MACRO_NAME                = ' '
       MACRO_PATH_FLAG           = ' '
        FORCE_START               = 'X'
       WAIT                      = 'X'
    IMPORTING
       WINID                     =
      TABLES
        DATA_TAB                  = it_output
      EXCEPTIONS
        NO_BATCH                  = 1
        EXCEL_NOT_INSTALLED       = 2
        WRONG_VERSION             = 3
        INTERNAL_ERROR            = 4
        INVALID_TYPE              = 5
        CANCELLED                 = 6
        DOWNLOAD_ERROR            = 7
        OTHERS                    = 8.

Maybe you are looking for

  • How to delete a field's name in the form of 2014.1

    In the 2014 version, you can delete the field's email in html and online everything worked. In version 2014.1 so you can do. Necessary to create a form with the name and telephone. Help!

  • Change of existing assets class description

    Hi Friends, I have a query and the details are given below: We intend to change the existing assets class description. Is it possible! What is the impact of such changes? As per my observation / opinion, we cannot change the asset class description a

  • Order of teststeps and more groups / Reihenfolg​e der Teststeps und mehrere Groups

    Hallo, 1.) wenn ich mir eigene Steps erstelle, dann kann unter "Sequence File Type" + "Properties" + "Menu" eine Group eingeben bei der man dann später im Testplan unter "Insert Step" den Test wiederfinden kann. Ist es auch möglich den Testschritt in

  • Closing FLEX current application using AS

    I use the following code to close the current application using Action Script and JavaScript: var urlString:String = "javascript:window.opener = self; self.close();"; var request:URLRequest = new URLRequest(urlString); navigateToURL(request, "_self")

  • Junior / Intermediate Software Developer - Calgary, Alberta Region Only

    We are currently hiring software developers and looking especially for LabVIEW experienced developers. The positive is for a full time software developer who can apply existing LabVIEW skills or is keenly interested to develop in LabVIEW by applying