Applet - Create image problem

I have an applet that draws scribble and send to Server. Server save the image drawn in applet.
Server side I have no problem. How much bytes are available in client side, same as I get in server side. So i have no doubt in server side code.
When I drawn simple 2 or three lines, then The image is looking ok.
But when i try to draw scribbling more, then the image is corrupted.
I dont know where am doing wrong.
Applet code :
import java.applet.*;
import java.awt.*;
import java.awt.event.*;
import java.awt.image.*;
import java.io.*;
import java.net.*;
import javax.imageio.*;
public class Scribble_Send extends Applet {
    private int last_x = 0;
    private int last_y = 0;
    private Color current_color = Color.black;
    private Button clear_button;
    BufferedImage bi =new BufferedImage(400,280,BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = (Graphics2D)bi.createGraphics();
    public void init() {
         this.setBackground(Color.lightGray);
         Button b = new Button("save");
         b.addActionListener(new ActionListener() {
       public void actionPerformed(ActionEvent ae) {
          showStatus("button pressed");
           try {
                ByteArrayOutputStream baos = new ByteArrayOutputStream();
          ImageIO.write(bi,"JPEG",baos);
          byte[] buf = baos.toByteArray();
                showStatus("buf length"+buf.length);
                URL servletURL = new URL(getCodeBase(),"/servlet/Write_Scribble");
              URLConnection servletConnection = servletURL.openConnection();
          servletConnection.setDoOutput(true);
          servletConnection.setUseCaches(false);
                OutputStream os = servletConnection.getOutputStream();
                os.write(buf);
             }catch (Exception e) {
             showStatus(e.toString());
      add(b);
    public boolean mouseDown(Event e, int x, int y)
        last_x = x; last_y = y;
        return true;
    public boolean mouseDrag(Event e, int x, int y)
        Graphics g = this.getGraphics();
        g.setColor(current_color);
        g.drawLine(last_x, last_y, x, y);
        g2.setColor(Color.white);
        g2.drawLine(last_x, last_y, x, y);
        last_x = x;
        last_y = y;
        return true;
}And Server Side:
public class Write_Scribble extends HttpServlet {
     public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
       Writer writer = null;
      try{
          InputStream in = req.getInputStream();
            ServletContext servletContext = getServletContext();
            String file = servletContext.getRealPath("/hello.jpg");
            int count, offset = 0;
          byte[] buff = new byte[65536];
            FileOutputStream fis = new FileOutputStream(file);
            while ((count = in.read(buff)) > 0)
                 fis.write(buff,offset,count);
               offset += count;
          fis.flush();
          fis.close();
      catch (Exception e)
            log("Exception"+e);
          e.printStackTrace();
}  Help me regarding creating an Image in memory.
Thanks
Sharmila A

thank u it is now working by u r first solution.i hv another
question if u hv time plz,i m putting this code in form
form=new form("\u639\u634\u634");
it is giving me unicode characters but not in concatenated form but
it is giving me each character separately and so no valid world becomes.
More over i m doing work on internationalization on mobile plz can u
give me some help by giving some suggestion.
thanx again.

Similar Messages

  • Create image problem.it is simple problem every on knows.

    hi all!
    i hv a problem in runing an image program.i hv this program
    from a tutorial and an io exception occurs what is wrong with code.<b>I m using jbuilder 6 and also keeping image in src folder.</b>
    thanks earlier;here is my simplest code:-
    import javax.microedition.midlet.*;
    import javax.microedition.lcdui.*;
    import java.util.*;
    public class PhoneImage1 extends MIDlet
    implements CommandListener,
    ItemStateListener {
    private Command exitCommand;
    //The display for this MIDlet
    private Display display;
    Form displayForm;
    Image image;
    public PhoneImage1() {
    display = Display.getDisplay(this);
    exitCommand = new Command("Eit", Command.SCREEN, 2);
    try
    image = Image.createImage("JavaP.png");
    catch (java.io.IOException ioExc)
    ioExc.printStackTrace();
    public void startApp() {
    displayForm = new Form("Imagitem");
    displayForm. append(
    new ImageItem("Default Layout",
    image,
    ImageItem.LAYOUT_DEFAULT,
    "Image Cannot be shown"));
    displayForm.addCommand(exitCommand);
    displayForm.setCommandListener(this);
    displayForm.setItemStateListener(this);
    display.setCurrent(displayForm);
    public void itemStateChanged(Item item)
    <br>
    public void pauseApp() { }
    public void destroyApp (boolean unconditional) { }
    public void commandAction (
    Command c, Displayable s) {
    if (c == exitCommand) {
    destroyApp(false);
    notifyDestroyed();
    }

    thank u it is now working by u r first solution.i hv another
    question if u hv time plz,i m putting this code in form
    form=new form("\u639\u634\u634");
    it is giving me unicode characters but not in concatenated form but
    it is giving me each character separately and so no valid world becomes.
    More over i m doing work on internationalization on mobile plz can u
    give me some help by giving some suggestion.
    thanx again.

  • Create Image from Stream in Applet via Servlet

    First of all, I apologize if this isn't posted to the proper forum, as I am dealing with several topics here. I think this is more of an Image and I/O problem than Applet/Servlet problem, so I thought this forum would be most appropriate. It's funny...I've been developing Java for over 4 years and this is my first post to the forums! :D
    The problem is I need to retrieve a map image (JPEG, GIF, etc) from an Open GIS Consortium (OGC) Web Map Server (WMS) and display that image in an OpenMap Applet as a layer. Due to the security constraints on Applets (e.g., can't connect to a server other than that from which it originated), I obviously just can't have the Applet create an ImageIcon from a URL. The OpenMap applet will need to connect to many remote WMS compliant servers.
    The first solution I devised is for the applet to pass the String URL to a servlet as a parameter, the servlet will then instantiate the URL and also create the ImageIcon. Then, I pass the ImageIcon back to the Applet as a serialized object. That works fine...no problems there.
    The second solution that I wanted to try was to come up with a more generic and reusable approach, in which I could pass a URL to a servlet, and simply return a stream, and allow the applet to process that stream as it needs, assuming it would know what it was getting from that URL. This would be more usable than the specific approach of only allowing ImageIcon retrieval. I suppose this is actually more of a proxy. The problem is that the first few "lines" of the image are fine (the first array of buffered bytes, it seems) but the rest is garbled and pixelated, and I don't know why. Moreover, the corruption of the image differs every time I query the server.
    Here are the relevant code snippets:
    =====================Servlet====================
        /* Get the URL String from the request parameters; This is a WMS
         * HTTP request such as follows:
         * http://www.geographynetwork.com/servlet/com.esri.wms.Esrimap?
         *      VERSION=1.1.0&REQUEST=GetMap&SRS=EPSG:4326&
         *      BBOX=-111.11361,3.5885315,-48.345818,71.141304&
         *      HEIGHT=480&...more params...
         * It returns an image (JPEG, JPG, GIF, etc.)
        String urlString =
            URLDecoder.decode(request.getParameter("wmsServer"),
                              "UTF-8");
        URL url = new URL(urlString);
        log("Request parameter: wmsServer = " + urlString);
        //Open and instantiate the streams
        InputStream urlInputStream = url.openStream();
        BufferedInputStream bis = new
            BufferedInputStream(urlInputStream);
        BufferedOutputStream bos = new
            BufferedOutputStream(response.getOutputStream());
        //Read the bytes from the in-stream, and immediately write them
        //out to the out-stream
        int read = 0;
        byte[] buffer = new byte[1024];
        while((read = bis.read(buffer, 0, buffer.length)) != -1) {
            bos.write(buffer, 0, buffer.length);
        //Flush and close
        bos.flush();
        urlInputStream.close();
        bis.close();
        bos.close();
        .=====================Applet=====================
        //Connect to the Servlet
        URLConnection conn = url.openConnection();
        conn.setUseCaches(false);
        conn.setRequestProperty("header", "value");
        conn.setDoOutput(true);
        //Write the encoded WMS HTTP request
        BufferedWriter out =
            new BufferedWriter( new OutputStreamWriter(
                conn.getOutputStream() ) );
        out.write("wmsServer=" + URLEncoder.encode(urlString, "UTF-8"));
        out.flush();
        out.close();
        //Setup the streams to process the servlet response
        BufferedInputStream bis = new
            BufferedInputStream(conn.getInputStream());
        ByteArrayOutputStream bos = new ByteArrayOutputStream();
        //Read the bytes and immediately write to the out-stream
        int read = 0;
        byte[] buffer = new byte[1024];
        while((read = bis.read(buffer, 0, buffer.length)) != -1) {
            bos.write(buffer, 0, buffer.length);
        //Flush and close
        bis.close();</code>
        bos.flush();</code>
        byte[] imageBytes = bos.toByteArray();
        //Create the Image/ImageIcon
        Toolkit tk = Toolkit.getDefaultToolkit();
        Image image = tk.createImage(imageBytes);
        imageIcon = new ImageIcon(image);
        Could this be an offset problem in my buffers? Is there some sort of encoding/decoding I am missing somewhere?
    Thanks!
    Ben

    Without having a probing look, I was wondering why you do the following...
    while((read = bis.read(buffer, 0, buffer.length)) != -1) {
    bos.write(buffer, 0, buffer.length);
    while((read = bis.read(buffer, 0, buffer.length)) != -1) {
    bos.write(buffer, 0, buffer.length);
    }Your int 'read' holds the number of bytes read in but you then specify buffer.length in your write methods?!? why not use read? otherwise you will be writing the end of the buffer to your stream which contains random memory addresses. I think thats right anyway...
    Rob.

  • Problem creating Image for HP dc5100SFF

    We just installed Zenwork 6.5 and was in the process of creating image
    for HP dc5100 desktop systems, and we encounter some problems. The PC
    downloads Linux.3 and in the process of executing, cannot obtain IP
    address from the DHCP server. How can I get it to see the NIC driver
    which is Broadcom Netxtreme gigabit ethernet card.

    I am running SP1a
    > On Tue, 20 Sep 2005 18:39:34 GMT, [email protected] wrote:
    >
    > > How can I get it to see the NIC driver
    > > which is Broadcom Netxtreme gigabit ethernet card.
    >
    > are you running sp1b?
    > --
    > If you have already compiled drivers or have linux.2 please put them on
    > http://forge.novell.com/modules/xfmo...ect/?zfdimgdrv
    >
    > Marcus Breiden
    >
    > Please change -- to - to mail me.
    > The content of this mail is my private and personal opinion.
    > http://www.edu-magic.net

  • Trying to create images to be used in my game

    Here's my situation. I have 3 main parts of the game.
    0 - in play
    1 - level up
    2 - buy screen
    each one has its own basic images/text that don't change. I want to create Images with all that background stuff already on it to improve the efficiency of the drawing. So here's what I tried:
    private Image          back, shipImage, ship2Image;
    private Graphics     backG;
    private Graphics2D     g2d;
    private Image[]          gameStateBackGround = new Image[3];
    private Graphics2D[]     gameStateGraphics2D = new Graphics2D[3];
    //In init.  I know these graphics objects work because this is what I
    //started with but now I'm wanting to improve
    back = createImage(mapWidth,mapHeight);
    backG = back.getGraphics();
    g2d = (Graphics2D) backG;
    g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    shipImage = Toolkit.getDefaultToolkit().getImage(getClass().getResource("ship.png")).getScaledInstance(20, 30, Image.SCALE_SMOOTH);
    ship2Image = Toolkit.getDefaultToolkit().getImage(getClass().getResource("ship2.png")).getScaledInstance(55, 35, Image.SCALE_SMOOTH);
    //In a method called in init() to create the Images I desribed
    gameStateBackGround[in_play] = createImage(mapWidth,mapHeight);
    drawStarField(gameStateBackGround[in_play].getGraphics());
    gameStateGraphics2D[in_play] = (Graphics2D) gameStateBackGround[in_play].getGraphics();
    starBase.draw(gameStateGraphics2D[in_play]);
    //In my draw method
    gameStateBackGround[in_play] = createImage(mapWidth,mapHeight);
    drawStarField(gameStateBackGround[in_play].getGraphics());
    gameStateGraphics2D[in_play] = (Graphics2D) gameStateBackGround[in_play].getGraphics();
    starBase.draw(gameStateGraphics2D[in_play]);now before I just had that main stuff drawing to the graphics objects used for the whole applet, and it worked fine. What I want is to pre-draw them, and just slap that whole single image of the constant stuff to my area of gameStateBackGround[]. Am I off to the right start?
    Now my drawStarField method asks for a Graphics object, and that draws, and that actually shows. Now for the stuff that's using Graphics2D objects, that is NOT showing. So I think where my main problem is is in creating the Graphics2D objects correctly. This whole concept I'm using for creating objects may be horrid, but hey, that's where you guys come in :) Tell me where I've screwed up hehe. Thanks for the help!          

    oops I screwed up. After:
    //In my draw method
    [/code
    comesbackG.drawImage(gameStateBackGround[gameState], 0, 0, this);

  • Unable to create image buffer after RAM preview

    Running into an odd and frustrating error. Built a comp using the new Ray-traced 3D renderer and now I'm regretting being an early adopter big time with all the problems I've been encountering with it. The latest comes whenever I do a longer RAM preview in an attempt to watch the whole duration of my comp. It will get to about 170 frames or so, at which point I've interrupted by pressing spacebar because I don't need to see all the way to the end of my work area (around 220 frames). It'll play the RAM preview back fine, and even loop it, but as soon as I stop playback, I get this error message: "After Effects warning: Unable to create image buffer." There's only one button: "okay" and as soon as I click it the same error pops up again and it will never go away, forcing me to close AE from the task manager. I've taken to saving before every RAM preview like I used to do with Flash before previewing my buggy swfs for fear I'll lose all my work after previewing. Any ideas about what might be causing this?
    Some more details about my comp:
    1920x1080 @ 29.97
    Ray-traced 3D
    About 70 3D layers (I'm guessing this is my downfall - new renderer not designed for this many layers?)
    Running Windows 7 Professional
    i7 2600K
    32GB RAM
    2x GTX 570 video cards running latest driver (301.42, CUDA 4.2.1)
    508GB free on my 2TB internal drive where the project and cache lives
    From my GPU info window in case it's useful:
    Fast Draft:
    Available
    Texture Memory:
    600.00 MB
    Ray-tracing:
    GPU
    OpenGL
    Vendor:
    NVIDIA Corporation
    Device:
    GeForce GTX 570/PCIe/SSE2
    Version:
    3.0.0
    Total Memory:
    1.20 GB
    Shader Model:
    4.0 or later
    CUDA
    Driver Version:
    4.2
    Devices:
    2 (GeForce GTX 570, GeForce GTX 570)
    Current Usable Memory:
    1.04 GB (at application launch)
    Maximum Usable Memory:
    1.25 GB

    Yeah, some buffer is very likely not flushing when you interrupt the preview and then there is no more memory on the graphics hardware. Consider setting the work area and your preview options to use only the work area. if it finishes the preview "correctly", it may not suffer the issue. Beyond that - raytracing doesn't/ shouldn't care about the number of items. The math is such, that it makes no difference whether you render a million polygons or just one. Of course there are still limitations due to the GPU dependency, but I doubt you ever truly exhaust the cards' geometry buffers. Compared to pixel data that is a small amount...
    Mylenium

  • How to create Image as Custom Property Type used in Configurable Web Part?

    I wanted to create custom configurable web part property for Image.
    Example - the screenshot of Image property used in Image web part is shown below:
    My goal is to create as many images as possible in custom configurable web part.
    I tried to write the code:
    [WebBrowsable(true),
    WebDisplayName("Example Photo"),
    WebDescription("Example Photo of the user"),
    Category("Custom User Profile"),
    Personalizable(PersonalizationScope.Shared)]
    public Image ExampleUserPhoto { get; set; }
    However, the result does not display Image configurable web part property.
    I wonder why the data type Image does not cause the custom web part to have Image configurable web part property.
    Other data types such as Boolean, Enum, Integer, String and DateTime can be used.
    How can I create Image as Custom Property Type used in Configurable Web Part?

    I have examined that context node __00 has been enhanced,and  has a class name  z___00. But  when I created a new attirubute by right click " Attributes" with wizard under context node __00.There is still  a error message "view is not enhaced or copied with wizard".
    But  when  I created a method  "getvaliation "  in the class of context node zcl__00, the attribute  'valiation' automatically created(at the same time the method "getvaliation' automatically  created for the attribute 'valiation') and I need not to create attibute 'validation' by wizard .  It seemed as if the problem is resloved. But when I make test for it in web ui .There is a runtime erro message.
    Do I need to make some configurations in  the business object layer  for the checkbox? but  the checkbox is only used as a flag  to decide whether a backgoud job is needed to be executed.
    Edited by: samhuman on Jun 22, 2010 10:31 AM

  • Disk Utility fails to create image from double layer DVD

    I burned a double-layer DVD using iDVD. It plays fine on the mac and on set-top DVD players. However, when I try to create an image of the DVD using Disk Utility, I get "Can't create image 'name.cdr' (input/output error)". I've tried re-burning the original disk, but it gets the same error when trying to create an image. I've also tried each of the image types, all with the same result.

    I was having similar problems, although I don't think my issues was related to a double-layer DVD. What worked for me was selecting File > New > Disk Image from Folder. Select the DVD in the file open/save dialog with the same options you used before (e.g., DVD/CD master, etc).
    HTH
    - Dave

  • Error creating //image file

    I don't know if anyone out there is still getting this error message, but I have found that by simply removing the "/" in the FTP dialog box under "host directory" your problem is solved. Apparently Muse adds the "/" and if you have one in the dialog box, there will be two instead of one causing the error. I am not a tech and just discovered this fix. Hope it helps!

    Hi Hollie, and welcome to the forums!
    Have you created images before successfully?
    Is this to/on your boot drive, or an external drive?
    Have you done any Disk/OS maintenance lately?
    We might see if there are some big temp files left or such...
    How much free space is on the HD, where has all the space gone?
    OmniDiskSweeper is now free, and likely the best/easiest...
    http://www.omnigroup.com/applications/omnidisksweeper/
    WhatSize...
    http://www.macupdate.com/info.php/id/13006/
    Disk Inventory X...
    http://www.derlien.com/
    GrandPerspective...
    http://grandperspectiv.sourceforge.net/

  • Image Problem: CorelDraw handles but Illustrator cannot

    Hi,
    We work for News media(print), we have subscribed for graphics data from another firm, this firm produces graphics for Web/Print.
    Today we have receieved some graphics in PDF format(often), These graphics are usually done in Coreldraw or Illustrator.
    We have to change certain spelling errors and colours to suit our print, i used to open the pdf in illustrator and change the colour and font, these graphics also contain images.
    Everything was going fine, until now almost all the graphics (pdf format) when open in Illustrator, the images in the graphic appear as torn or to say corrupted(apperances), but the same graphic(in pdf format) when opened in Coreldraw, the images in graphics appear fine.
    Why this problem happens in Illustrator.
    We use Illustrator CS3 and CorelDraw X4.
    Some of the techie guys told me it has to do with resolution of the images where Coreldraw handles pictures well of low resolution and illustrator cannot.
    Here below the first graphic which was open in Illustrator shows the images in graphics as torn but in bottom graphic which was openen in Coreldraw shows images are fine.
    Any solution.
    Thanks

    Hello iebng,
    In my experience, when you open a PDF file made with QuarkXpress, CorelDraw or other program other than Illustrator, you may experience problems opening them in illustrator. This is due to the way a PDF was saved and/or the original program.
    The most common issue is the color, specially when the designer used RGB instead of CMYK color system.
    This does not mean that Illustrator is the problem. Again, sometimes depends on how the PDF file was created. But also you have to considered that Adobe Illustrator CS3 have some minor issues handling PDF files (CS4 version is worse)
    QuarkXpress is very picky handling the fonts. For example: Quark does not accept Helvetica font provide by different companies. In other words, if you Helvetica Regular font from two different companies the file can have some conflicts: therefore will affect the PDF file creating a problem when open it in illustrator. Illustrator ignores the company or font type (Postscript, True, or Open) and replaced it with the Helvetica font that you have in your system.
    As you can see in your provided samples, the text looks out of place, bolder, bigger, etc., and the colors have shifted.
    One of the solution I think can help you, is to ask the designers that when possible supply the artwork using Postscript fonts, True Fonts, or Open Fonts. Whichever works for you the best. Also give a set of specific fonts to be use in their projects.
    But you can always ask the designer to correct the typos and send a PDF file with outlined fonts.
    I think is best to keep using both programs and use them per PDF file furnished. But for printing, you cannot accept low resolution images (300 PDI only).
    Portable Document Format files are good, but needs a lot of improvement for the printing industry. All the software and computer companies should agree in one standard color system, link file handling, etc. to avoid the problems that all of us we are having.

  • Adding Image problems

    Having some problems adding images.
    I was able to add the Ubuntu server image mentioned in the install guide and it is working 
    It appears on the nodes palette and I can create a topology with it and boot it.
    I was also able to add CSR image csr1000v-universalk9.03.13.00a.S.154-3.S0a-ext.qcow2 to the server.  
    However the CSR icon isn't available on the node palette.  How do I fix this?
    How to add other vmdk or ovf style images?  
    I have a network emulator that runs as a VM and comes as a vmdk.   I tried installing it and I get the following message ...  -Cannot create image "server-DummyCloud": Failed to convert image to QCOW2: Command '['qemu-img', 'convert', '-O', 'qcow2', '/tmp/tmpnfp_m_', '/tmp/tmpWk3al7']' returned non-zero exit status 1
    Where can I find compatible NXos images?  

    No change.
    Still get the message ..
    Cannot create image "server-DummyCloud": Failed to convert image to QCOW2: Command '['qemu-img', 'convert', '-O', 'qcow2', '/home/virl/dc.vmdk', '/tmp/tmpmgCkzK']' returned non-zero exit status 1
    I"ll open a tac case.

  • White strip/border/line/edge on cut out/resized image (problem SOLVED)

    It was all about 64bit-32bit versions.
    I've installed 32-bit CS6 and now everything works perfect.
    No white lines after applying/resizng anything.

    We need to isolate whether you have, possibly:
    1.  Problems with 3rd party software.
    2.  A bug in Photoshop or your system manifesting in 64 bit only.
    3.  Any misunderstandings of how masking and transparency work.
    If you shoot a photo of someone against a light background and try to cut out the pixels in just the subject, you will almost certainly end up with light artifacts at the edges of the subject, because in reality the (light) background color blends with the subject color at the edges.   Placing a masked subject shot against a light background over a dark background can be trouble, having nothing to do with Photoshop problems.
    That said, if you're doing identical things with the same image in each version of Photoshop (32 and 64 bit) and getting visibly different results, you definitely have a problem somewhere.
    What would be helpful for you to do is to develop a simplified sequence of operations on a particular image with which you can create the problems you see, then describe those steps in detail here, along with providing a small image on which to do them.  Facilitating the easy reproduction of the problem will go miles toward having the Adobe people take notice and potentially fix the problem.
    -Noel

  • Creating images with J2EE

    Hello everbody!
    I use the Sun Java System Application Server 8.1 and I am interested in creating images with Servlets. Because the J2EE specification prohibits the use of the AWT (and the Sun Application Server enforces this restriction by installing a security manager), I want to know which possibilities exist to create images without the AWT.
    Any comments are appreciated in advance!
    Regards,
    Stefan

    Hi ava,
    I am sorry for being unprecise. By creating images I mean drawing my own images from scratch. I wanna start by something like
    BufferedImage image = new BufferedImage( ... );and then draw into that image, using the usual drawLine etc. methods from java.awt.Graphics or java.awt.Graphics2D.
    But this is not possible, because the Application Server forbids using these methods.
    I am sure someone encountered this problem before me. There must be a solution without AWT. Maybe there exists a library.
    Any ideas?
    Regards,
    Stefan

  • Upload image failed when create image asset

         I am using JSK, run on Tomcat, each time when I try to create Image Asset, and upload a image file, I will get "Upload failed" error, and there is not much information for me to debug the exception, anyone saw the same error? Thanks

      I happen to spot the root cause of the problem today by simply changing the Web Browser, my previous Firefox is too old, if using Firefox version 22, upload file will be fine
    -Liang Yi

  • Would trying to manually load NSS Internal PKSS #11 Module create a problem or would nothing happen without a filename in the load window under Security Devices?

    Would clicking the load button while NSS Internal PKSS #11 Module is selected and accepting the pop-up window without filling in any more information create a problem for the Firefox 8 program?

    Quote from: lcwhitlock on 04-April-14, 13:44:09
    Hello darkhawk,
    Thank you for the recommendation.  I somewhat understand what a MS DOS disk is, but I'm not sure how to go about creating one. I've seen where you can use a program, like Rufus, to create a usb one  - but I'm leery about using 3rd-party programs (especially ones I'm not familiar with). I've come across a couple of 'how-to' tuts, but they didn't clarify what files (if any) I would need to include on the disk (for my particular situation). Right now I don't have any blank cds, nor any extra flash/thumb drives - wish I did, but hadn't needed these for years. There has only been one other time where I needed to re-install Windows, but that was over 15 years ago - I did it through BIOS, reformatting my drives, and then reinstalled via the Windows XP disk. Windows 8 is an entirely different breed, which has left me feeling a bit stumped, at times. If there was a way I could perform it (successfully), similar to the first time I did it years ago, I'd give it a try - but at the same time, I'm a bit reluctant, because if it doesn't work, then I'm stuck without any internet access to get further help.
    Ask and ye shall receive. This should be doable in Windows 7 and Windows 8 on another PC. I recommend using a USB Flash drive like in this tutorial, but I'm sure you could use something else.
    If you want, you could also use Hiren's BootCD to make a bootable CD with many options and programs on it (I keep one, just for certain situations) that will allow you to do the same things.
    http://www.hiren.info/pages/bootcd
    Also very useful for sorting out virus's as long as it's downloaded and made on another PC that is virus free......

Maybe you are looking for