How does java support the doc files

Hai all,
I am doing a project where the back up word files are to be displayed on the browser . If it is a text file we can give it as a input stream and if it is a image , it will take it as a .jpg . Then how the .doc can be inputed(I want the MS-word files to be inputed) .
If u have a solution please mail it to
E-mail ID : [email protected]

I am bit confused about ur requirement.
U cannot open a file thr' ur applet which runs in a browser. Do do so, u may have to modify the java policy file or use signed applet. These two links may be of some help for u.
http://developer.java.sun.com/developer/onlineTraining/Programming/BasicJava1/data.html#applet
http://java.sun.com/docs/books/tutorial/security1.2/tour1/step2.html
But I have written a mail long back to ur email with regard to Java Securiy. plz read it. If u need more abt it, get back to me.

Similar Messages

  • How does java support the concept of destructor?

    How does java support the concept of destructor?

    @KunalSurana: before you flood the forum with basic questions, do us a favour and read.
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • Preview does not support the raw file format of the nikon d300s

    preview does not support the files and snow leopard does not provide icon previews either.
    is there any date when there will be support for these type of files?
    any suggestions on how to open the NEF files with preview in the meantime there is an update?
    regards

    any suggestions on how to open the NEF files with preview in the meantime there is an update?
    Not with Preview, but Nikon Transfer v1.0.1.3005 is so far happy with 10.6.1 and you may see if there is any advantage there. Take the card out of the 300s and use a reader if you have to.
    It usually takes from 3 to 6 months before Apple releases a new/specific Nikon RAW related update, so you are at the beginning of that cycle it would appear...all you can do is wait, sorry.

  • How java will support the doc files

    I am doing a project where the back up word files are to be displayed on the browser . If it is a text file we can give it as a input stream and if it is a image , it will take it as a .jpg . Then how the .doc can be inputed(I want the MS-word files to be inputed) .I have to do it in jsp.
    If u have a solution please mail it to
    E-mail ID : [email protected]

    That's right ! Don't bother fiddling with the constantly changing MS formats, use RTF instead. MS changes the file format with every new version of Office, so that all users get compelled to buy the new version in order to be able to read what the others have written.

  • Media Encoder -- Audio -- Advanced Settings -- Precedence -- What is the difference between the two options presented here and how does it effect the final file?

    I see no literature in any of the manuals that explains this option -- what is it exactly and how does it work?

    endasil wrote:
    Um...have you compared when specifying v = 0x0FFFF, as an arbitrary example?
    Edit All right I'll be a little more specific. How the heck would your Test1 method know if it's only being passed int values <= 255?
    Edited by: endasil on Nov 6, 2007 8:48 PMI see, well, why would it care? all it does is take int and store it into a byte. what else could it do with an int and byte array? Also, if you wanted to check for values <= 255 one could simply add asm code to do that, after all, Test2.test2() has a signature of ([BI) that is (byte[] ba, int v). So, if the method wants to fool around with v* it can iload_1* and do any comparison tests, ifeq* etc..., and latter stuff it into byte array using bastore* without the unnecessary i2b* call.
    I just don't see the use of the i2b* instruction if bastore* could careless. Will this cause the stack to become unlined and cause trouble program down-the-line in execution? I am thinking that I loaded an int*, +4bytes+, but only consumed 1byte. But now that I think about it, iload_1 loads an int* onto local heap so it should get cleaned up when the program exits. So, as long as I made bastore* the last instruction in the program I shouldn't have a problem. Or maybe this doesn't matter either?
    *Also, since ba is an byte[] why would I want to check it for anything other than a byte value? if I wanted to get an int I would have created an int[]*
    My point is that as long as one wants to stuff an int into a byte array the i2b instruction is overkill, albeit not much, and I just do see the usefulness of it.
    This is for when I do something like, byte_array[i] = '-', and the compilers say loss of information and I cast '-' to (byte)'-', meaning I don't care if I loss any information. but it called i2b anyways byte_array[i] = '-' yields the same result.
    I just didn't understand what was behind this.
    Does that answer that question or am I missing anything?
    Edited by: earamsey on Nov 6, 2007 8:04 PM

  • How does  java support arabic database?(please help me)

    Dear programmers,
    i am facing a problem in retriving arabic data base by usying java program.
    because whenever i retrive arabic data base it shows me the information as qoustion mark like this ???????????????/
    which means that java can not underastand arabic data base.
    so please let me know how can i solve this problem by usying java.
    thanks for your cooperation.
    sincerely smart.

    I use sql server as data base for my java program .
    the problem is :
    When i try to connect my java program with data base has arabic data ,
    the java program can't understand the arabic data ,so it replaces the arabic data with question marks like this ?????
    Also when i try to write arabic data from my java program to my data base , i find the records in the data base is filled as ????? also.
    so , i hope that the question becmes clear ........
    i will wait for answer ...

  • How does Java API handles binary files

    I couldn't find some documentation which describes how to extend the Java API for handling binary files. (I want to upload, check in/out (and delete) such files from within a Java application.) Does anybody know where I can find an example or some related documentation?
    TIA, Olaf

    The methods on ContentObjectDefinition
    allow you to create binary or ascii document content.

  • Online Consistent brbackup - How does SAP lock the archive files?

    With an Oracle online consistent brbacup, i believe that SAP locks the archive log files so they are not deleted during the backup.
    How do they do this?
    If a backup crashes how do I unlock these locks?

    Here is the statement (from the netbackup trace)  that caused brachive to stop.
    Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to QUIESCE status.
    Here is relevenmat part of the NetBAckup/backint log...
    5:21:36.691 [11248] <4> adjustObjectStatus: File </oracle/BP1/oraarch/BP1arch1_207989.dbf> in VxBSA_INPROGRESS status. No ch
    ange of status needed.
    15:21:36.691 [11248] <4> adjustObjectStatus: Done.
    15:21:36.691 [11248] <4> VxBSAWaitForFileListStatus: INF - entering WaitForFileListStatus.
    15:21:36.691 [11248] <4> bsa_handle_std_backup: INF - entering bsa_handle_std_backup.
    15:21:36.691 [11248] <4> bsa_comm_w_bkar: INF - entering bsa_comm_w_bkar.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Recieved bpbkar message: #END /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Comparing physical file  path: /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: to file from bpbkar message:   /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File paths matched.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to VxBSA_UNQUIESCE status.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Recieved bpbkar message: #BEGIN /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Comparing physical file  path: /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: to file from bpbkar message:   /oracle/BP1/oraarch/BP1arch1_207989.dbf
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File paths matched.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: Set file /oracle/BP1/oraarch/BP1arch1_207989.dbf to QUIESCE status.
    15:21:38.714 [11248] <4> bsa_comm_w_bkar: File /oracle/BP1/oraarch/BP1arch1_207989.dbf not in VxBSA_NOTREADY state.
    15:21:38.714 [11248] <16> bsa_comm_w_bkar: Can't change state.
    15:21:38.714 [11248] <4> do_file_backup: The sequence of calls is incorrect.
    15:21:38.715 [11248] <4> do_backup: Exit with status: <2>.
    15:21:38.715 [11248] <4> /usr/sap/BP1/SYS/exe/run/backint 6.0: **************************************************************

  • How does Java keep the value from temporary variable?

    Hello all:
    I have a Question for Java Assignment operator.
    Object v1;
    Object v2;
    v1 = v2; // Java assignment by reference if I understand correctly
    ///// for example:
    import java.io.*;
    import java.util.*;
    public class TestOne {
    Vector v1;
    public void changeV() {
    Vector v2 = new Vector();
    v2.addElement(new Integer(10));
    v2.addElement(new Integer(11));
    v2.addElement(new Integer(12));
    v1 = v2;
    public TestOne() {
    changeV();
    System.out.println(v1.size());
    System.out.println("0: " + v1.elementAt(0));
    System.out.println("1: " + v1.elementAt(1));
    System.out.println("2: " + v1.elementAt(2));
    public static void main(String[] args) {
    new TestOne();
    // Output from Screen
    bash-3.00$ java TestOne
    3
    0: 10
    1: 11
    2: 12
    If I understand correctly, " v1 = v2; " is assigned by reference.
    So the question is when function 'changeV' return, why v1 still holds the
    values from v2 which has been destroyed?
    Thank you
    -daniel

    firstly, the assignment is by-value, not by-reference.
    the value the variables hold is a thingy called "reference." (In other languages such as C or C++ it might be called "pointer.") So "v1 = v2" always copies the value of v2 to v1.
    secondly, the vector object that is created in the changeV method, is created on the heap, that is, in dynamic memory. The variable v2 holds only a reference to it. So when the method returns, only the reference is destroyed, not the actual object.
    The object is automatically destroyed when there are no more reachable references to it (it is "garbage collected").

  • Does Java Support Signing

    Hello All:
    I want to develop a application which would sign the file that need to be passed through unsecure channel.
    Does Java support the same.
    Regards
    Ritesh

    Dear Sir:
    Thanks for the mail.Well last time I did send you a source code of the Encryption/Decryption of a text file.I want to store the file type of the file in a appropriate way instead of using Encrypting the extension.
    And after the encryption ,I want to modify the application to have the content of the complete file to signed.I would request you to advice me whether the complete file content is signed or just the generated key for encryption.
    Let me hear from you.
    regards
    Ritesh

  • Does  BPM support the JAVA config file feature.

    Hi ,
    Does BPM support the JAVA config file feature? like based on env(local, dev, test, stage, prod) BPM aaplication can have different values for the same property/variable using the config file. How can BPM identify its env (local, dev, test, stage, prod)
    Thanks In Advance!
    Sreekant

    931907 wrote:
    Hello Robert,
    I am refering here to both C++ client and Coherence Server. Will it work in either of the cases?
    Thanks,
    JayHi Jay,
    Coherence server: it definitely won't do anything with C++.
    C++ client: for the cache store of a local cache residing within the C++ client you may be able to specify it, but it will have nothing to do with the cluster itself. I never worked with the C++ client, so I can't guarantee you can configure it that way. Look at the following page for further documentation:
    http://docs.oracle.com/cd/E24290_01/coh.371/e22839/cpp_config.htm
    Best regards,
    Robert

  • How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tri

    How to fix file when it says, "Cannot open file " ". Adobe Indesign does not support the file format, a plug-in that supports the file may be missing, or file may be open in another application." It worked one second, I saved and closed the file, then tried to reopen and now it won't work. I am using Adobe InDesign CS5. It is the only version on my comp. I have tried opening on another comp & copying the file – same error comes up. PLEASE HELP

    First check the version of the document with Jongware's script "Identify.jsx" (ExtendScript/JavaScript).
    You can find it here:
    [Ann] Identify Your InDesign File
    If it is CS 5.5 or above, you need someone to open it in the version the script says and export an IDML representation from that. Another way would be to install a 30days version of CS6 or above (CC) and do it yourself.
    In regards of the script showing a result for InDesign files higher than CS6:
    CS7 = CC v9
    CS8 = CC v10 = CC-2014 or CC2014.1
    Uwe

  • How To Store pdf or doc file in Oracle Database using Java Jdbc?

    can any one help me out How To Store pdf or doc file in Oracle Database using Java Jdbc in JSP/Serlet? i tried like anything. using blob also i tried. but i am able 2 store images in DB not files. please if u know or else if u have some code like this plz send that to me, and help me out plz. i need that urgent.

    Hi.. i am not getting error, But i am not getting the original contents from my file. i am getting all ASCII vales, instead of my original data. here i am including my code.
    for Adding PDF in DB i used image.jsp
    Database table structure (table name. pictures )
    Name Null? Type
    ID NOT NULL NUMBER(11)
    IMAGE BLOB
    <%@ page language="java" import="java.util.*,java.sql.*,java.io.*" pageEncoding="ISO-8859-1"%>
    <%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    try{
         Class.forName("oracle.jdbc.driver.OracleDriver");
         Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
         PreparedStatement ps,pstmt,psmnt;
         ps = con.prepareStatement("INSERT INTO pictures VALUES(?,?)");
    File file =
    new File("D:/info.pdf");
    FileInputStream fs = new FileInputStream(file);
    ps.setInt(1,4);
    ps.setBinaryStream(2,fs,fs.available());
    int i = ps.executeUpdate();
    if(i!=0){
    out.println("<h2>PDF inserted successfully");
    else{
    out.println("<h2>Problem in image insertion");
    catch(Exception e){
    out.println("<h2>Failed Due To "+e);
    %>
    O/P: PDF inserted successfully
    i tried to display that pdf using servlet. i am giving the code below.
    import java.io.IOException;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class DispPDF extends HttpServlet {
         * The doGet method of the servlet. <br>
         * This method is called when a form has its tag value method equals to get.
         * @param request the request send by the client to the server
         * @param response the response send by the server to the client
         * @throws ServletException if an error occurred
         * @throws IOException if an error occurred
         public void service(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              //response.setContentType("text/html"); i commented. coz we cant use response two times.
              //PrintWriter out = response.getWriter();
              try{
                   InputStream sPdf;
                   Class.forName("oracle.jdbc.driver.OracleDriver");
                        Connection con=DriverManager.getConnection("jdbc:oracle:thin:@192.168.1.135:1521:orcl","scott","tiger");
                        PreparedStatement ps,pstmt,psmnt;
                   psmnt = con.prepareStatement("SELECT image FROM pictures WHERE id = ?");
                        psmnt.setString(1, "4"); // here integer number '4' is image id from the table.
                   ResultSet rs = psmnt.executeQuery();
                        if(rs.next()) {
                   byte[] bytearray = new byte[1048576];
                        //out.println(bytearray);
                        int size=0;
                        sPdf = rs.getBinaryStream(1);
                        response.reset();
                        response.setContentType("application/pdf");
                        while((size=sPdf.read(bytearray))!= -1 ){
                        //out.println(size);
                        response.getOutputStream().write(bytearray,0,size);
                   catch(Exception e){
                   System.out.println("Failed Due To "+e);
                        //out.println("<h2>Failed Due To "+e);
              //out.close();
    OP
    PDF-1.4 %âãÏÓ 2 0 obj <>stream xœ+är á26S°00SIá2PÐ5´1ôÝ BÒ¸4Ü2‹ŠKüsSŠSŠS4C²€ê P”kø$V㙂GÒU×713CkW )(Ü endstream endobj 4 0 obj <>>>/MediaBox[0 0 595 842]>> endobj 1 0 obj <> endobj 3 0 obj <> endobj 5 0 obj <> endobj 6 0 obj <> endobj xref 0 7 0000000000 65535 f 0000000325 00000 n 0000000015 00000 n 0000000413 00000 n 0000000168 00000 n 0000000464 00000 n 0000000509 00000 n trailer <<01b2fa8b70ac262bfa939cc786f8770c>]/Root 5 0 R/Size 7/Info 6 0 R>> startxref 641 %%EOF
    plz help me out.

  • TS3230 i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    i get a pop-up window saying the current version of Safari does not support the community toolbar.  How do I get rid of this?

    You need to uninstall the Community / Conduit toolbar add-on.
    Locate the files in bold print and move them to the Trash. The first five are in your root   /Library
    /Library/Application Support/Conduit
    /Library/InputManagers/CTLoader
    /Library/ScriptingAddtions (anything CTLoader realted)
    /Library/Receipts/<Toolbar name>.pkg
    /Library/Application Support/SIMBL/Plugins/CT2285220.bundle
    The next one is in your Home folder.
    ~/Library/Application Support/Conduit
    When you're done, try Safari.

  • I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

    I have Elements 10 and a Nikon D7100. PSE10  CR 6.7 does not support the 7100 NEF. How can I get the updates to do this?

    The D7100 requires camera raw 7.4 which is not compatible with Photoshop Elements 10.
    Your two main options are
    1) Buy a newer version of Photoshop Elements
    2) Use the Adobe DNG converter to convert the NEF files to DNG files which can then be used by Photoshop Elements 10.
    DNG  Converter 8.8
    Win – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5888
    Mac – http://www.adobe.com/support/downloads/detail.jsp?ftpID=5887
    Useful Tutorial
    http://www.youtube.com/watch?v=0bqGovpuihw
    Brian

Maybe you are looking for

  • Account Determination Error - Discounts - ERS

    Dear All, When I am releasing my Billing Document, I am getting the "Account Determination Error". My Requirement: Sales Discounts should not post to ERS Account Key. Price          -     PR00 - 10000 ERL GL Account (10000) Discount    -     K004 - 1

  • Why do I have no entry sign apper when I log in

    When I turn my iMac on the log in screen appears, when I select my (or any for that matter) user accounts, I am prompted for password, which is accepted and the system goes through the start up process, rather than starting the apple logo in the midd

  • Clear-items

    what is the difference between clearing and post with  clearing. can u tell me about this one

  • Image previews

    I'm not sure where to ask this one, but here goes. If you export images from iPhoto to burn onto a CD for a Windows computer or for archiving for instance, you can see thumbnails of all the images. But if you burn it to a CD or move them to another f

  • Push Texts (along with attributes) to MDM

    Hi All! There are lot of information how to push data to MDM via OHD. But all of that is regarding Attributes. Anybody knows how to push Texts data along with attributes?