[IDS3 JAVA] Saving an embed link into a file

Hello,
I have a rectangle that contains a link - this link is embeded, and the source file is not available from the server. Is there a way to save this linked document into a file or to have the array of "byte[]" 5for example) of the data of the linked file ?
I take any other solutions ...

My mistake.... the unembed function take a folder as parameter... so I can unembed a file even if the link doesn't exist.

Similar Messages

  • IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    IS THERE ANY WAY TO EMBED LINKS INTO THE FILE YOU ARE WORKING ON?

    Ha! Perfectly classic case of XY problem! Pointed out by Jongware in some other thread recently - couldn't find an exact link right now...
    In short:
        User wants to do X.
        User doesn't know how to do X, but thinks he can fumble his way to a solution if he can just manage to do Y.
        User doesn't know how to do Y either.
        User asks for help with Y.
        Others try to help user with Y, but are confused because Y seems like a strange problem to want to solve.
        After much interaction and wasted time, it finally becomes clear that the user really wants help with X, and that Y wasn't even a suitable solution for X.
    Maybe it worth to add to a list of tips and best practices of the forum:
    Avoid XY problem!

  • Saving result from query into CSV file

    Hi folks,
    in our application we're generating pages source using general packages (like htp, owa_util, ...). and in this part I'm a really beginner.
    I want to modify source one of our page, I want to add functionality to enable save result from query (cursor) into CSV file, to enable user choose place where generated file will be created and also change file name.
    I searched this forum and I found procedure, that could be useful:
    procedure p_getcsv is
    cursor cur is
           select 'a1' col1, 'b1' col2, 'c1' col3 from dual
       union  select 'a2' col1, 'b2' col2, 'c2' col3 from dual
       union  select 'a3' col1, 'b3' col2, 'c3' col3 from dual;
       begin
            -- Set the MIME type
            owa_util.mime_header( 'application/octet', FALSE );
            -- Set the name of the file
            htp.p('Content-Disposition: attachment; filename="test.csv"');
            -- Close the HTTP Header
            owa_util.http_header_close;
            -- Loop through all rows in EMP
            for x in cur
            loop
                -- Print out a portion of a row,
                -- separated by commas and ended by a CR
                 htp.prn(x.col1||','|| x.col2||','||x.col3|| chr(13));
            end loop;        
       end;What peace of code should I add to procedure that is generating web page to enable calling this procedure and whole saving process?
    Can anybody help me with this?
    Many thanks,
    Tomas
    Message was edited by:
    Tomeo

    Hi Marc,
    thanks for reply, problem is that I'm not using APEX application, I'm just generating web page code straight using oracle general packages.
    But I found this solution (maybe some tunning will be good):
    In page where I want to display Download i have
      begin
             htp.anchor2 (
                           curl  =>  ... .p_getcsv'||'?term=2005&crn=123,
                           ctext => 'Download Class List'
             HTP.br;
          end;
    ...si I'm calling p_getcsv procedure:
      procedure p_getcsv( term  IN stvterm.stvterm_code%TYPE DEFAULT NULL,
                           crn   IN sirasgn.sirasgn_crn%TYPE DEFAULT NULL) is
       v_length      NUMBER;
       v_file_name   VARCHAR2 (2000);
       temp_blob  blob;
       line RAW(32767);
       begin
             DBMS_LOB.CREATETEMPORARY(temp_blob, TRUE);
             FOR i IN 1..6  LOOP
                line := UTL_RAW.CAST_TO_RAW(i||','||term||','||crn||',AAA,BBB,CCC'||chr(10));
                DBMS_LOB.WRITEAPPEND(temp_blob, LENGTH(UTL_RAW.CAST_TO_VARCHAR2(line)), line);
             END LOOP;
              v_file_name := 'ClassList.csv';
              v_length  := DBMS_LOB.getlength (temp_blob);
              -- set up HTTP header
                 -- use an NVL around the mime type and
                 -- if it is a null set it to application/octect
                 -- application/octect may launch a download window from windows
               OWA_UTIL.mime_header (NVL ('csv', 'application/octet'), FALSE);
               -- set the size so the browser knows how much to download
               HTP.p ('Content-length: ' || v_length);
               -- the filename will be used by the browser if the users does a save as
               HTP.p (   'Content-Disposition:  attachment; filename="'
                  || REPLACE (REPLACE (SUBSTR (v_file_name,
                                               INSTR (v_file_name, '/') + 1
                                       CHR (10),
                                       NULL
                              CHR (13),
                              NULL
                  || '"'
                 -- close the headers
                 OWA_UTIL.http_header_close;
                -- download the BLOB
                 WPG_DOCLOAD.download_file (temp_blob);
                 -- release temporary blob
                 dbms_lob.freetemporary(temp_blob);  
       end;Regards,
    Tomas

  • Saving a process/thread into a file

    I want to simulate a Object Oriented Database using a Process or a Thread. I need to save and load a the thread quickly and if possible, I would like not to serialize. Is there a way to just dump the Thread status and memory content into a file and Load it back when I load the application? or do I need to serialize all the objects and recreate them every single time?

    It's an interesting area of CS research to be able to do this, but unfortunately not possible in Java. Once you start thinking about the fact that, in the internals, all the object references and such are just pointers to blocks of memory, and when you dump the memory to disk, and load it back in... the object data may not be in the same place as it was when you first had it loaded. This makes all the pointers break, etc...
    Now, once you start thinking about things like open file handles and network sockets, or thread/process stacks, registers (even in Java, virtual registers) and execution locations... it's kind of mind-boggling that there are people out there smart enough to be working on a way to do it!
    Anyways, no there's no way to do it in Java.. you've got to serialize all your objects, and start back from scratch- furthermore, to my knowledge, there's absolutely no way to pick up program execution where it left off (i.e., if you were in the middle of executing a method when you dumped to disk). Could be wrong about that, though...
    Sorry I went on like that, hope it was informative at least!

  • ActionScript 2.0 to be able to embed URL into SWF file?

    Hello,
    It seems that the web based newspaper who is going to publish my ad banner doesn't have flash player 10 (or 9). My ad banner was made in Flash CS4 / ActionScript 3.0. Instead I now have to change the code in my invisible button to ActionScript 2.0 to be able to publish it in flash player 8. What is the ActionScript 2.0 code so I can make the same embed URL into my SWF file as I did with the following ActionScript 3.0:
    function linkToSite(evt:MouseEvent):void {
         var url:String = "http://www.IMAGESofFISHERMEN.com/?p=50#more-50";  // replace with your url
         var req:URLRequest = new URLRequest(url);
         navigateToURL(req, "_self");
    urlBtn.addEventListener(MouseEvent.CLICK, linkToSite);
    Regards
    Maria

    As far as I know, the Flash player version should not be of any significance to the host service.  It is the Flash player in the site visitor's web browser that decides matters.
    In any case, that code would become...
    urlBtn.onRelease = function(){
         getURL("http://www.IMAGESofFISHERMEN.com/?p=50#more-50", "_self");

  • Problem in saving the spool list into Excel file.

    Hello Friends,
                         I run a background process for a report, and storing the resulting list into Excel format file. But the result is column values jumbled, it means columns values are not sitting in the right place in excel sheet.
    I also tried saving as unconverted text file and then open it using excel still the same result.
    Cheers,
    Senthil

    Hi,
      Use the FM 'EXCEL_OLE_STANDARD_DAT'.
    In this FM populate the tables parameter 'fieldnames' to get each cloumn below the heading correctly.

  • Inserting a url link into a file made in swish - swf

    Hi everyone - i made asmall swf in Swish -
    I want it to go to a link when the user clicks on it
    Can't seem to work it out
    Any advice most appreciated
    Mark

    quiero mas wrote:
    > Hi everyone - i made asmall swf in Swish -
    > I want it to go to a link when the user clicks on it
    >
    > Can't seem to work it out
    >
    > Any advice most appreciated
    >
    > Mark
    You need to embed the url link within the swf itself. The way
    I used to
    do it was draw a transparent button over the whole aera of
    the swf and
    attached the url to that. Get_url I think.
    I can't exactly remember the steps to produce the results but
    that the
    direction you should be lookin in. Maybe ask on the Flash
    forum for
    specific steps.

  • Embed a web link into an image for email

    Embed a web link into an image for email.  Anyone knows how to do this?

    Fantastic!!
    Where did you get that?!   I'll try it with the "poster frame" of a movie.  I am so grateful.  It opens a whole new world.

  • Trying to load a javascript link from text file into a dynamic textfile

    Can anyone help me with this problem? Im trying to load in a
    newsfeed from freshcontent.net into my text field. If i put this
    javascript link on an html page, the page shows correctly, which is
    im supposed to get 3 dynamic links with news content headlines.
    Please view the link to see what i mean:
    http://www.freshcontent.net/directory/real-estate/real_estate.html
    Now, i cannot get this same type of display behavior in my
    text field if i just paste into my text file the javascript link
    thats supposed to bring up the 3 headlines. It is my understanding,
    that flash cannot do this without some sort of specific
    actionscripting, that involves asfusion, and/or externalInterface.
    Im not sure exactly how to go about setting this up to make this
    work. My current code looks like this:
    If anybody could tell me where im going wrong and what i
    should change in order to get the desired result im going for, Id
    very much appreciate it. Thanks

    well sorry there fanmap - but I don't think you're going to
    be able to get this to work. here's why: the link points to a php
    file - which gathers dynamic info from a DB - the return from the
    php is generating a string that is based on the DOM and
    'constructs' a javascript method that in turn writes to the html
    document. although we can embed html into a textField in Flash
    there are a limited number of supported html tags - and JS methods
    will not operate internally. in addition, (i'm not certain someone
    correct this if i'm off) there's no way to 'change' the output of
    the php call, therefore you will not be able to read the return
    because it is designed to use the DOM and write solely to the
    current document. Even if you were to access the JS method from the
    swf file (which one can) it will still only write the content of
    the php return to the html document - and the output is not
    compatible with the textField class.

  • How do I embed bitmaps into a built (.exe) LabVIEW application?

    I am trying to embedd bitmap images (icons) into the exe file of a built LabVIEW application. I tried it, and got them in a "data" folder. I want everything in the .exe file, you know, just like C/C++ or just about any other programming language.
    If anyone has any tips, I would be grateful.
    I know about embedding the images in the controls, but that is not my goal. I need images as files to be embedded, somehow, into the .exe. The reason is I am using the picture control to read the images, but they are static once they are read. If it is possible for the picture controls to somehow retrieve the images from some other source, that would work also.
    Otherwise, if someone knows how to dynamicall
    y embed bitmap or other images into buttons in an array, that would be useful as well.
    Thanks

    > I am trying to embedd bitmap images (icons) into the exe file of a
    > built LabVIEW application. I tried it, and got them in a "data"
    > folder. I want everything in the .exe file, you know, just like C/C++
    > or just about any other programming language.
    >
    > If anyone has any tips, I would be grateful.
    >
    > I know about embedding the images in the controls, but that is not my
    > goal. I need images as files to be embedded, somehow, into the .exe.
    > The reason is I am using the picture control to read the images, but
    > they are static once they are read. If it is possible for the picture
    > controls to somehow retrieve the images from some other source, that
    > would work also.
    >
    > Otherwise, if someone knows how to dynamically embed bitmap or other
    > images i
    nto buttons in an array, that would be useful as well.
    >
    Actually, many C and C++ programs, like LV itself have folders of data
    that aren't linked into their code. But, if that is what you are
    looking for, one pretty easy way is to load the images into memory and
    place them into a 2D array of data, a string etc. Make an array of
    these and make the value default. At runtime, you can now skip the file
    I/O, or you can write the data to a temporary on launch and read them
    back whenever you like.
    Greg McKaskle

  • Wiki file attachments - can the wiki be configured to link to a file already on the server rather than uploading it into the page?

    Can the wiki be configured to link to a file already on the server rather than uploading it into the page? This would enable users to open (and edit) the original server hosted document rather than downloading a static copy that can't be edited and synced back into the wiki page.
    As a workaround I've tried attaching an alias to a file but it doesn't work - the wiki instead uploads the aliased file.
    From what I can work out, the default wiki behaviour is to upload a document to a wiki page, which creates a copy of the uploaded document in the wiki database. This copy has no connection to the original document. It can be downloaded and edited, but the edits are not saved back into the wiki hosted version of the document.
    I'd like to be able to upload a link or alias to a document (with preview please!) already on the server. A user could then preview the document or click to open and edit it.
    The only way I can do this at the moment is to create a link "afp://123.../doc.rtf" to the original. This is timeconsuming and confusing for non-technical users and doesn't offer the benefits of the attach function (ie document preview).
    Is there any way the wiki can be configured to link to documents already on the server using the attach functionality?

    An update for anyone in a similar situation.
    Patch 3944727 for 9.0.4.1 that solves this issue: "USER LOV IASM11SHIP EDIT USER LOV SHOULD SHOW THE NICKNAME ATTRIBUTE." However, the patch is mutually exclusive with the latest CPU's and there's no plan to merge the pacthes given the dwindling support for 9.0.4.1. So that patch is pretty much worthless.
    I've been told that this patch is included in newer portal versions, so the real solution is an upgrade.
    Trenton

  • How do I embed fonts into Captivate projects?

    This question came up in May 2006 but was never really
    answered. I'd like to know how to embed fonts into my Captivate
    projects so that the output looks the same on all computers. While
    the text animations are fine, the Text Caption fields are the ones
    that seem to have fonts that go walkies on other computers. I know
    you can embed fonts in PDFs. Why not in Captivate (unless I'm
    missing something in 2.0).

    First, a tip for the forums: If you use the URL tags, your
    post won't require horizontal scrolling - sorry, but I use Firefox
    and entering a long URL totally blows my ability to smoothly read
    the post ... you can manually add a text link by using the "L" tag
    as shown below (I've put spaces in to avoid this being turned into
    another text link)
    [ L = Your Text]
    http://www.yourdomain.com [ /
    L ]
    Back to your issue, Charinos. I'm glad you did find the URL,
    but that thread and your problem are not even in the same world.
    That thread deals with fonts in text-entry boxes (boxes for
    end-user text-entry), and you are talking about text-captions, an
    entirely different object.
    In fact, if you make changes and save those changes to a
    text-caption, then publish the project, the fonts in your text
    captions will remain stable and are not dependent on the fonts
    installed on the end-viewer's machine. The reason is that when the
    SWF is compiled, the text captions are converted to images and so
    long as the file is viewed as intended in the HTML document - at
    the proper size - the stretching you describe cannot take place.
    I'm not saying you are seeing things, but if my understandings of
    the Captivate machine are correct, what you are saying is happening
    cannot
    be happening. Something else is going on, like a failure to
    save changes, use of non-conforming text-caption boxes with a
    resultant loss of margins, or something.
    Sorry I'm not more help. I can't duplicate what you are
    seeing but I hope someone else can help you out - I may still be
    misunderstanding your issue.

  • Saving an integer array into a .txt file

    hii, im only a beginner in java, so this is the only code i've learned so far for saving array elements into a file
         public static void saveNames(String [] name) throws IOException
                   FileWriter file = new FileWriter("Example\\names.txt");
                   BufferedWriter out = new BufferedWriter(file);
                   int i = 0;
                   while (i < name.length)
                             if (name[i] != null)
                                  out.write(name);
                                  out.newLine();
                                  i++;
                   out.flush();
                   out.close();
    However, this is only used for string arrays; and i can't call the same method for an integer array (because it's not compatible with null)
    I don't really understand this code either... since my teacher actually just gave us the code to use, and didn't really explain how it works
    I have the same problem for my reading a file code as well --> it's only compatible with string
         public static String [] readNames (String [] name) throws IOException
              int x = 0;
              int counter = 0;
              String temp = "asdf";
              name = new String [100];
              FileReader file = new FileReader("Example\\names.txt");
              BufferedReader in = new BufferedReader(file);
              int i = 0;
              while (i < array.length && temp != null)                    // while the end of file is not reached
                   temp = in.readLine();
                   if (temp != null)
                        name[i] = temp;                    // saves temp into the array
                   else
                        name[i] = "";
                   i++;
              in.close();                                   // close the file
              return name;
    Could someone suggest a way to save elements from an integer array to a file, and read integer elements of that file?
    Or if it's possible, replace null with a similar variable (function?), that is suitable for the integer array (i can't use temp != 0 because some of my elements might be 0)
    Thanks so much!!!!!

    because it's not compatible with nullI think it should be okay to just remove the null condition check since there are no null elements in a primitive array when writing.
    Use Integer.parseInt() [http://java.sun.com/javase/6/docs/api/java/lang/Integer.html] to convert the String into an Integer when you read it back and use Integer.toString() to be able to write it as a String.

  • How to embed audio into file for export to pdf

    Hello, I've transcribed a two-hour lecture and copied it into Indesign.  I would like to create a pdf with the audio of the lecture embedded in it so that when the reader clicks on a paragraph or a button the audio for that particular sentence or section starts up. The point is to allow the reader ready-access to the audio that corresponds with the transcript. Ideally the reader could click anywhere in the text and the audio would start there.  Does anyone have any suggestions for making this kind of document? much appreciated.

    no pardon necessary! i need to embed the audio file because it contains the original lecture, that's what I want the reader to have access to while reading the transcription, since the transcription is not meant to substitute for but rather supplement the audio. for example, in the transcribed text I have put "[...]" for segments of the recording that are inaudible. If I put the original audio into the file then the reader has the option of going to that specific section and listening to it themselves. basically i want to create a pdf document of a lecture. I want to be able to highlight important parts of the lecture, search the lecture for key-words, and scan it quickly for specific items of interest, but I also want easy access to the original audio because tone of voice isn't translatable into text (and the tone of voice in this case is important for meaning), and because there are many segments that I couldn't hear, so I'm trying to figure out the best way to link sections of the text to specific sections of the audio.

  • Maintaining internal links on Word files placed into Indesign

    I want to bring a word file into Indesign, which has a very large number of internal links. When I place the file in Indesign, the external  hyperlinks transfer as well as bookmarks, but the internal links do not., The blue colour and the underlining format transfers but the actual links are lost. I don't want to re-link all these links within the document again. Is there a way to bring the internal links into inDesign with the Word file?

    Hi everyone,
    I know this is from a few months ago, but I just found it!
    I deal with PDFs coming from Word that have to go on press a lot. This is what I know. Word's color space is RGB, so we're already starting out with a problem.
    1. Open the Printers in the Control Panel folder
    Choose the Adobe PDF Driver
    Right click to open Properties
    Go to Device Settings
    Convert gray text to Postscript gray: change this setting to Yes
    Convert gray graphics to Postscript gray: change this setting to Yes
    2. When you print to Adobe PDF, choose Press Quality job options. This may only show up for those who have the full blown Acrobat installed. If you don't have this, go through all of the job options, especially Color and Fonts. In the Fonts tab, make sure that Embed is turned ON and that there are no fonts in the Never Embed column. If there are, delete them. Under Color, either leave unchanged (which is fine if your doc is all text and you've changed the settings on the driver described above), or choose "Convert Color to CMYK".
    3. Within Acrobat (not Reader), you can view separations: under Advanced menu, then Output Preview. Turn color plates off and on as desired. I usually turn off black and scroll through the file. If anything shows up on the page, I know I have something to fix. (For B&W docs.)
    4. You can fix a lot of things without having PitStop, but if you deal with having to get PDFs in shape to go on press, Pitstop is well worth the investment!
    5. I agree that it's not necessary to place PDFs into InDesign, unless there's something else you're adding to the pages.
    I hope this helps!
    Tina DeJarld
    Creative Quadrant

Maybe you are looking for