Dividing a dmg Image file

Im hoping one of you guys has an answer....
I've created about 4 disk image files on a mac at work that I wanted to transfer to my ipod. After learning that i cannot transfer a file over 4gigs or so to the ipod because its based on a "fat32 system" I therefore need to split the 4 dmg files that are about 7 gigs each in half. When I try to transfer these to the ipod, the transfer goes up to the very last few megabytes and tells me that it cannot continue because there is information missing from the file. Is there any way in disk utility or another app where i can split a dmg file in half or something of the sort? Thanks!

You can use Disk Copy 6.4 to open a .dmg file which isn't compressed or encrypted in Mac OS 9. The link is a direct download.
(18778)

Similar Messages

  • DMG Image File Error

    Hi Everyone,
    I need your assistance, please help.
    I've created dmg image files in the past and when I try to mount them , I get an error Warning dialogue box that says, "no mountable file system."
    What does that mean?
    I always double click the image and expect it to mount on my desktop. I've tried to mount it with the File>Mount menu via the Disk Utility, but it doesn't work, no error messages. It just doesn't mount.
    This doesn't occur all the time, but when it does, it's always a file that I urgently need.
    Would someone please explain to me what the above warning message means, and what are the possible reasons why this is happens?
    Are there other ways to mount an image with that type of warning message, maybe with some type of utility of some sort?
    Thanks
    Cheers
    KL
    iMac G5   Mac OS X (10.4.3)  

    The message basically means that the file is corrupted or that Disk Utility has a problem. A bit more information is needed. How did you make those dmg files? Can you mount any obtained from another source, such as any of Apple's downloads, by double-clicking on them? If those won't mount, then either the Disk Utility pref file is fouled up or Disk Utility is.
    For the former, move the com.apple.diskcopy.plist and com.apple.diskutility.plist from ~/Library/Preferences/ onto the desktop, log out and back in, and try double-clicking on the dmg file giving you problems. If that doesn't work, create a new admin user account, log into it, and try again. If it works, then the problem's in the original account. If not, then it's probably system-wide and your best bet is to reinstall the 10.4.3 combo update.

  • How to make a image file from Pre installed Mac osx ? "PLEASE HELP :("?

    hey guys ..Thanks u for the time.
    So i have this eMac which has crashed and i have got may hands on another eMac.. and it works
    ... the only problem is.. I can take my eMac to the working eMac to do Target Mode or any thing...
    So Help me..
    My question is .. Is there a way to make a .DMG image file from pre installed mac osx OR
    Is there a way to may a recovery disc??

    You can use Carbon Copy Cloner to copy everything from the working eMac onto the non-working eMac while the working eMac is running. If your eMac will still do target mode into the working one, you can download the above software, select the booted drive as the source drive, and your eMac's drive as the target, however it is possible this will not work.
    When you say your eMac crashed, what exactly happened?  It is possible that the hard drive in your eMac failed or is failing, so in order to get it running again you would need to replace the hard drive.  On the eMac, this repair is somewhat involved, and you have to be very careful because it exposes the CRT, which has several areas which can be extremely dangerous to touch if not properly handled.  CRTs retain a great deal of voltage, even when unplugged, sometimes for weeks, and they can give you a nasty shock if you touch them in the wrong place.
    Also keep in mind that cloning from the working computer to the non-working computer will ERASE any data that you have stored on that eMac, so if you don't have it backed up anywhere, you may want to attempt that with target mode before proceeding.
    Good luck!

  • Why can't I open multiple sparse image files at the same time in FCPX?

    I work in a multiple editor enviroment, where we have hundreds of different projects.  They are all divided into sparse image files to keep them all separated.  I used to be able to mount multiple sparse image files and see them all in FCPx.  But recently, FCPx upon opening, will close out all but one sparse image.  The images are still mounted to the OSx but FCPx will not recognize them.  I can only open one sparse image at a time.  I am needing to export multiple projects at the end of the day, and can't batch export or send them all to compressor because I can open up multiple projects.

    I work in a multiple editor enviroment, where we have hundreds of different projects.  They are all divided into sparse image files to keep them all separated.  I used to be able to mount multiple sparse image files and see them all in FCPx.  But recently, FCPx upon opening, will close out all but one sparse image.  The images are still mounted to the OSx but FCPx will not recognize them.  I can only open one sparse image at a time.  I am needing to export multiple projects at the end of the day, and can't batch export or send them all to compressor because I can open up multiple projects.

  • Problems mounting dmg images "no mountable file systems"

    I have noticed with many DMG images I cannot open them. I constantly get an error "no mountable file systems".I sent the same DMG image to my friend on his Mac and he can open it, so it is on my side. I also have noticed my pen drive is not showing up on the desktop, but shows in disk utility. I have noticed these problems since I cloned and replaced my HD. I have also added a 50 GB partition to Boot Camp, if this should matter. Any idea??

    repaired permissions and rebooted.
    all ok now

  • HELP: Cannot restore DMG image stored on NTFS disk!

    Hello. My MacBook Pro has OSX Lion on it.
    I have created a DMG image of my starting volume using Disk Utility. The image was saved on an NTFS formatted external USB disk. I used Paragon NTFS for Mac to activate writing on NTFS partitions. The image was created, tested and it mounted fine. It's size is 105GB.
    I have restarted the system and am accessing Disk Utility from the recovery partition that OSX Lion creates. Disk Utility can see the NTFS disk and I can choose the DMG image as source and the partition on the internal hard disk as a target without problems but when I press the restore button and the Image scan process is going to start I just get an error that says "Unabke to scan Mac-OSX HD. Resource busy". When I try the SCAN BEFORE RESTORE command on Disk Utility on the image I am getting "Unable to scan MAC IMAGE.DMG (Not such file or directory)".
    I have already erased my startup disk and really need to get this image back in place. It is the only backup I have of my data.
    Any help is greatly appreciated!

    Thanks for the fast answer. Excuse my question but are you certain of this? This would be a big job because I would have to:
    1. Find another external hard disk. Most probably it will be NTFS formatted because this and FAT32 are the most common formats out there.
    2. Find another apple computer to transfer the image to the other hard disk
    3. Format my external hard disk as a HFS disk
    4. Transfer the DMG image back to the HFS hard disk.
    5. After this reformat my external hard disk as NTFS because I live in an hybrid world where PCs and Macs coexist and NTFS is a good bet for compatibility.
    If you indeed are certain that that is the correct answer to this situation then I will move into it immediately.
    Thanks.

  • Help with making start up disk from .dmg image on hard drive

    HI Guys hope you can help i have a .DMG image of my OSX install files and need to know how i burn this onto a dvd so i can use it as a start up disk or do a reinstall.
    Never had to even think about any of this before so an idiots guide would be most useful burned the .dmg image to a disk but it wont work as a start up disk and if i open it once inserted it wont work using the start up disk application within system preferences
    Any help appreciated

    An image of your hard drive? No. A copy of Tiger DVD?
    It could be done under Panther with a program called BootCD, but not Tiger.
    Why? when you can easily clone your system to a FW drive partition and use that as needed. Or use TechTool Pro 4.5.1 to put an "eDrive" on your boot drive or another drive (~7GB) just for emergencies.
    You can use Disk Utility to Restore your boot drive to a disk image and back if you want to store it on another drive and in the event of disaster striking and you need to erase and restore.

  • Does Time Machine handle open DMG images?

    System config:
    - MacBook Pro w/10.6.8
    - Time Machine backing up to external Firewire-connected 1TB drive.
    To help protect some sensitive files, I have an encrypted and password-protected disk image on my MacBook in which I keep various files (mostly Word documents) containing private information. The DMG is named private.dmg, and is normally mounted r/w on my desktop so I can access the files and folders stored in its volume as required.  (I mount it manually after logging on).  Throughout the day, I may create new files or edit existing files that are stored in the private volume, which in turn is contained within the private.dmg file.
    Recently, I needed to go back in time and recover an earlier version of one of the confidential files. Time Machine couldn't find the file with the date that that I needed (3 days ago). It appears that the files in the private volume are not getting backed up reliably to my external drive hourly/daily/weekly as per the Time Machine regimen. I would have expected the private.dmg file to get backed up by TM if/when any changes have been made to the files stored in its contained volume, but that seems not to be the case. If I enter Time Machine and go back in time, I find old versions of the private.dmg file as expected, but if I mount an older version and examine the contents, I don't see corresponding old versions of the files within.
    Are there known limitations with this configuration?  I know that TM can have problems with dealing with some open files, notably the Entourage database file.  Perhaps TM fails to handle an open dmg image? Since the dmg file is essentially open all day (having been mounted), is it plausible that TM never backs it up   Is there any way that I can ensure that Time Machine properly backs up the sensitive files in the mounted volume? 
    Thanks.

    @ Kiraly,
    Thanks, I'm aware of that. I have been pursuing my TM archives by directly accessing the file structure on the TM volume (within the Backups.backupdb folder), locating the .dmg file with appropriate date, mounting it, and then looking on the mounted volume for the file I need to recover.   (that's a lot faster than restoring each private.dmg file from within the TM application.
    It appears to me that TM is not properly saving the state of the open .dmg file when it does its hourly backup. Perhaps it doesn't see changes made to files within the volume. Perhaps it just wasn't designed to handle .dmg files that OS X has open for R/W access.
    I should mention that my dmg volume is a sparse image. I wonder if that complexity is sufficient to mess up TM.

  • Error in image file upload using dreamweaver

    Greeting to you all!
    Please I need you PRO help. My case seem similar to some of the ones I have seen but my code is completely different.
    I wrote this code below using PHP in Dreamweaver and its used to upload images to MySQl database. Now when I upload about 6 images, it shows File Uploaded Successfully. But if I try to upload any thing below 6 images, it will refuse to upload and will echo Upload Failed.
    <?php
    if(isset($_POST['submit']))
              $projid=$_POST['projid'];
              $projname=$_POST['projname'];
              $name=basename($_FILES['file_upload']['name']);
              $t_name=$_FILES['file_upload']['tmp_name'];
              $dir='upload';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $nameone=basename($_FILES['file_uploadone']['name']);
              $t_name=$_FILES['file_uploadone']['tmp_name'];
              $dir='upload1';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $nametwo=basename($_FILES['file_uploadtwo']['name']);
              $t_name=$_FILES['file_uploadtwo']['tmp_name'];
              $dir='upload2';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namethree=basename($_FILES['file_uploadthree']['name']);
              $t_name=$_FILES['file_uploadthree']['tmp_name'];
              $dir='upload3';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namefour=basename($_FILES['file_uploadfour']['name']);
              $t_name=$_FILES['file_uploadfour']['tmp_name'];
              $dir='upload4';
              if(move_uploaded_file($t_name,$dir."/".$name))
              $namefive=basename($_FILES['file_uploadfive']['name']);
              $t_name=$_FILES['file_uploadfive']['tmp_name'];
              $dir='upload5';
              if(move_uploaded_file($t_name,$dir."/".$name))
                        mysql_select_db ($database_ProjMonEva,$ProjMonEva);
                        $qur="insert into tbl_images (imageid, projid, projname, name, path, nameone, pathone, nametwo, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) values ('','$projid','$projname','$name','upload/$name','$nameone','upload/$nameone','$nametwo', 'upload/$nametwo','$namethree','upload/$namethree','$namefour','upload/$namefour','$namefi ve','upload/$namefive')";
                        $res=mysql_query($qur,$ProjMonEva);
                        echo 'File uploaded successful';
              else
                        echo 'upload failed!';
    ?>
    I see the problem to come from the echo but I am stock and dont know how to correct it. Can any one please help me.
    Thank you in advance Mike

    Hi Bregent,
    I have been able to resolve the issue. I modified the code this way: This I believe will help those having the same issues.
    These is how I was able to achieve it.
    1. I divided the code into two parts called addnew.php and addnewproject.php.
    The addnewproject.php as seen below will call the addnew.php when the submit button on addnewproject.php is clicked
    <form action="addnew.php" method="POST" id="Add New Project" enctype="multipart/form-data">
          <div align="center">
            <table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td id="formcells4"><strong id="subheaders">Core Details</strong></td>
                <td></td>
              </tr>
              <tr>
                <td id="dates">*Code (Eg. 2104/12/AB23):<br />
                  <label for="projcode"></label>
                  <span id="sprytextfield1">
                  <input type="text" name="projcode" id="projcode2" />
                <span class="textfieldRequiredMsg">A value is required.</span></span><br /></td>
                <td></td>
              </tr>
              <tr>
                <td colspan="2" id="dates">Project Name:
                  <label for="projname3"></label>
                  <span id="sprytextfield2">
                  <input type="text" name="projname" id="projname3" />
                  <span class="textfieldRequiredMsg">A value is required.</span></span></td>
              </tr>
              <tr>
                <td colspan="2" id="dates">Project Description:<span id="description"><br />
                  <label for="projdesc"></label>
                  <span id="txt_projdesc">
                    <textarea name="projdesc" id="projdesc" cols="70" rows="8"></textarea>
                    <span class="textareaRequiredMsg">A value is required.</span></span></span></td>
              </tr>
              <tr>
                <td id="formcells"><p id="dates">*Date Entered: <em>YYYY/MM/DD</em><span id="year">
                  <label for="projappdate"><br />
                  </label>
                  <span id="txt_dateproapp">
                    <input type="text" name="projappdate" id="projappdate" />
                    <span class="textfieldRequiredMsg">A value is required.</span></span></span></p></td>
                <td id="formcells"><p id="dates">*Project LGA:<span id="txt_projlga">
                  <label for="projlga"><br />
                  </label>
                  <span id="txt_lga">
                    <select name="projlga" id="projlga">
                      <option value="1">.... Select from list ....</option>
                      <?php
    do { 
    ?>
                      <option value="<?php echo $row_rsLGA['lga']?>"><?php echo $row_rsLGA['lga']?></option>
                      <?php
    } while ($row_rsLGA = mysql_fetch_assoc($rsLGA));
      $rows = mysql_num_rows($rsLGA);
      if($rows > 0) {
          mysql_data_seek($rsLGA, 0);
                $row_rsLGA = mysql_fetch_assoc($rsLGA);
    ?>
                    </select>
                <span class="selectRequiredMsg">Please select an item.</span></span></span></p></td>
              </tr>
              <tr>
                <td id="formcells6"><p id="dates">*Project Community:<span id="txt_ojcommunity">
                  <label for="projcommunity"><br />
                  </label>
                  <select name="projcommunity" id="projcommunity">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsCommunity['community']?>"><?php echo $row_rsCommunity['community']?></option>
                    <?php
    } while ($row_rsCommunity = mysql_fetch_assoc($rsCommunity));
      $rows = mysql_num_rows($rsCommunity);
      if($rows > 0) {
          mysql_data_seek($rsCommunity, 0);
                $row_rsCommunity = mysql_fetch_assoc($rsCommunity);
    ?>
                  </select>
                </span></p></td>
                <td id="formcells6"><p id="dates">*Project State:<span id="txt_projstate"><br />
                  <select name="projstate" id="projstate">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsState['state']?>"><?php echo $row_rsState['state']?></option>
                    <?php
    } while ($row_rsState = mysql_fetch_assoc($rsState));
      $rows = mysql_num_rows($rsState);
      if($rows > 0) {
          mysql_data_seek($rsState, 0);
                $row_rsState = mysql_fetch_assoc($rsState);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td height="63" id="formcells8"><p id="dates">Project Cost:<span id="txt_projcost"><br />
                  <label for="projcost"></label>
                  <span id="txt_projectcost">
                    <input name="projcost" type="text" id="projcost" />
                    <span class="textfieldRequiredMsg">A value is required.</span></span></span></p></td>
                <td id="formcells"><p id="dates">*Project Type:<span id="txt_projtype"><br />
                  <label for="projtype"></label>
                  <select name="projtype" id="projtype">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsType['projtypelist']?>"><?php echo $row_rsType['projtypelist']?></option>
                    <?php
    } while ($row_rsType = mysql_fetch_assoc($rsType));
      $rows = mysql_num_rows($rsType);
      if($rows > 0) {
          mysql_data_seek($rsType, 0);
                $row_rsType = mysql_fetch_assoc($rsType);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formcells2"><p id="dates">Project Baseline Data:<span id="sprytextarea2"><br />
                  <label for="projbaselinedata"></label>
                  <textarea name="projbaselinedata" id="projbaselinedata" cols="70" rows="8"></textarea>
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formcells3"><p id="dates">Expected Outcome Of Project:<span id="sprytextarea3"><br />
                  <label for="Projexpoutcome"></label>
                  <textarea name="Projexpoutcome" id="Projexpoutcome" cols="70" rows="8"></textarea>
                </span></p></td>
              </tr>
            </table>
            <table width="600" border="0" cellpadding="0" cellspacing="0" id="teamtable">
              <tr>
                <td colspan="2"><strong id="subheaders">Beneficiaries</strong></td>
              </tr>
              <tr>
                <td width="241"><p>Adult Men Beneficiaries: <span id="txt_adultmen">
                  <label for="adultmen"><br />
                  </label>
                  <input name="adultmen" type="text" id="adultmen" />
                </span></p></td>
                <td width="259"><p>Adult Female Beneficiaries:<span id="txt_adultfem"><br />
                  <label for="adultfem"></label>
                  <input name="adultfem" type="text" id="adultfem" />
                </span></p></td>
              </tr>
              <tr>
                <td><p>Adult Children Beneficiaries:<span id="txt_totalchildren"><br />
                  <label for="children"></label>
                  <input name="totalchildren" type="text" id="totalchildren" />
                </span></p></td>
                <td><p>Total Beneficiaries:<span id="sprytextfield4"><br />
                  <label for="totalben"></label>
                  <input name="totalben" type="text" id="totalben" readonly="readonly" />
                </span></p></td>
              </tr>
              <tr>
                <td><p> </p></td>
                <td><p> </p></td>
              </tr>
              <tr>
                <td><strong id="subheaders">Project Team</strong></td>
                <td><p> </p></td>
              </tr>
              <tr>
                <td><p>*Project Team Leader:<span id="spryselect1"><br />
                  <label for="projteamlead"></label>
                  <select name="projteamlead" id="projteamlead">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
                <td><p>*Deputy Team Leader:<span id="spryselect2"><br />
                  <label for="projteamlead"></label>
                  <select name="projdepteamlead" id="projdepteamlead">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
              </tr>
              <tr>
                <td><p>*Project Officer:<span id="spryselect3"><br />
                  <label for="projteamlead"></label>
                  <select name="projofficer" id="projofficer">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
                <td><p>*Liason Officer:<span id="spryselect4"><br />
                  <label for="projteamlead"></label>
                  <select name="projliasonofficer" id="projliasonofficer">
                    <option value="1">.... Select from list ....</option>
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_rsProjectTeam['fullname']?>"><?php echo $row_rsProjectTeam['fullname']?></option>
                    <?php
    } while ($row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam));
      $rows = mysql_num_rows($rsProjectTeam);
      if($rows > 0) {
          mysql_data_seek($rsProjectTeam, 0);
                $row_rsProjectTeam = mysql_fetch_assoc($rsProjectTeam);
    ?>
                  </select>
                </span></p></td>
              </tr>
            </table>
            <table width="600" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="300" id="moredetails2"> </td>
                <td width="300"> </td>
              </tr>
              <tr id="moredetails">
                <td width="300" id="moredetails"><strong id="subheaders">Meeting Dates</strong></td>
                <td width="300"><strong id="subheaders">Other Dates</strong></td>
              </tr>
              <tr id="formrows">
                <td width="300" id="formrows"><p id="dates">*1st  Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting1"><br />
                  <input type="text" name="projmeeting1" id="projmeeting1" />
                </span></p></td>
                <td width="300" id="formrows"><p id="dates">*Project Start Date: <em id="formcells">YYYY/MM/DD</em><span id="txt_projstartdate">
                  <label for="projstartdate"></label>
                  <input type="text" name="projstartdate" id="projstartdate" />
                  </span>
                  <label for="projstartdate"></label>
                </p></td>
              </tr>
              <tr>
                <td width="300" id="formrows"><p id="dates">*2nd  Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting2"><br />
                  <input type="text" name="projmeeting2" id="projmeeting2" />
                  </span>
                  <label for="projteam2"></label>
                  <label for="projmeeting2"></label>
                </p></td>
                <td width="300" id="formrows"><p id="dates">*Project End Date: <em>YYYY/MM/DD</em><span id="txt_projenddate"><br />
                  <label for="projenddate2"></label>
                  <input type="text" name="projenddate" id="projenddate" />
                </span></p></td>
              </tr>
              <tr>
                <td width="300" id="formrows"><p id="dates">*3rd Meeting Date: <em>YYYY/MM/DD</em><span id="txt_projmeeting3"><br />
                  <input type="text" name="projmeeting3" id="projmeeting3" />
                </span></p></td>
                <td width="300" id="formrows"><p id="dates">*MoU Signing Date: <em id="formcells">YYYY/MM/DD</em><span id="txt_projmousigndate"><br />
                  <label for="projmousigndate"></label>
                  <input type="text" name="projmousigndate" id="projmousigndate" />
                </span></p></td>
              </tr>
              <tr>
                <td colspan="2" id="formrows2"><div align="center" id="notice"><img src="images/notice.jpg" width="501" height="73" /></div></td>
              </tr>
            </table>
          </div>
          <p align="center"></p>
          <p align="center" id="text">
            <input type="file" name="file_upload" />
            <input type="file" name="file_uploadone" />
            <input type="file" name="file_uploadtwo" />
          </p>
          <p align="center" id="text">
            <input type="file" name="file_uploadthree" />
            <input type="file" name="file_uploadfour" />
            <input type="file" name="file_uploadfive" />
          </p>
          <p align="center">
            <input type="submit" name="submit" value="Save &amp; Submit"/>
          </p>
        </form>
    The addnew.php will now execute and add the data and image file names and path to MySQL database and upload the images to their various locations. it will also check the image file size be sure its not more than 100kb and must really be an iamge with format .jpg, .png and .gif.
    <?php
    if(isset($_POST['submit']))
              $projcode=$_POST['projcode'];
              $projname=$_POST['projname'];
              $projname=$_POST['projname'];
              $projdesc=$_POST['projdesc'];
              $projappdate=$_POST['projappdate'];
              $projcommunity=$_POST['projcommunity'];
              $projlga=$_POST['projlga'];
              $projstate=$_POST['projstate'];
              $projcost=$_POST['projcost'];
              $projtype=$_POST['projtype'];
              $projbaselinedata=$_POST['projbaselinedata'];
              $Projexpoutcome=$_POST['Projexpoutcome'];
              $adultmen=$_POST['adultmen'];
              $adultfem=$_POST['adultfem'];
              $totalchildren=$_POST['totalchildren'];
              $totalben=$_POST['totalben'];
              $projteamlead=$_POST['projteamlead'];
              $projdepteamlead=$_POST['projdepteamlead'];
              $projofficer=$_POST['projofficer'];
              $projliasonofficer=$_POST['projliasonofficer'];
              $projmeeting1=$_POST['projmeeting1'];
              $projmeeting2=$_POST['projmeeting2'];
              $projmeeting3=$_POST['projmeeting3'];
              $projmousigndate=$_POST['projmousigndate'];
              $projstartdate=$_POST['projstartdate'];
              $projenddate=$_POST['projenddate'];
              $name=basename($_FILES['file_upload']['name']);
              $t_name=$_FILES['file_upload']['tmp_name'];
              $dir='imageone';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_upload']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_upload']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$name))
                        echo 'File 1 uploaded successfully....!';
              else
                        echo 'File 1 upload failed or was not submitted....!  ';
              $nameone=basename($_FILES['file_uploadone']['name']);
              $t_name=$_FILES['file_uploadone']['tmp_name'];
              $dir='imagetwo';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadone']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadone']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$nameone))
                        echo 'File 2 was uploaded successfully....!';
              else
                        echo '...File 2 upload failed or was not submitted!  ';
              $nametwo=basename($_FILES['file_uploadtwo']['name']);
              $t_name=$_FILES['file_uploadtwo']['tmp_name'];
              $dir='imagethree';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadtwo']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadtwo']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$nametwo))
                        echo 'File 3 uploaded successfully';
              else
                        echo '...File 3 upload failed or was not submitted!  ';
              $namethree=basename($_FILES['file_uploadthree']['name']);
              $t_name=$_FILES['file_uploadthree']['tmp_name'];
              $dir='imagefour';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadthree']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadthree']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namethree))
                        echo 'File 4 uploaded successfully';
              else
                        echo '...File 4 upload failed or was not submitted!  ';
              $namefour=basename($_FILES['file_uploadfour']['name']);
              $t_name=$_FILES['file_uploadfour']['tmp_name'];
              $dir='imagefive';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadfour']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadfour']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namefour))
                        echo 'File 5 uploaded successfully';
              else
                        echo '...File 5 upload failed or was not submitted!  ';
              $namefive=basename($_FILES['file_uploadfive']['name']);
              $t_name=$_FILES['file_uploadfive']['tmp_name'];
              $dir='imagesix';
              // Validate uploaded image file
              if ( !preg_match( '/gif|png|jpeg/', $_FILES['file_uploadfive']['type']) ) {
                           die('<p>Only browser compatible images allowed</p></body></html>');
              } else if ( $_FILES['file_uploadfive']['size'] > 100000 )
                           die('<p>Sorry file too large</p></body></html>');
              if(move_uploaded_file($t_name,$dir."/".$namefive))
                        echo '    File 6 uploaded successfully';
              else
                        echo '....File 6 upload failed or was not submitted!  ';
              mysql_select_db ($database_XXXXXXXX,$XXXXXXXX); where XXXXXXXX is my database connection details. Please change to yours.
                        $qur=("insert into tbl_projects (projid, projcode, projname, projdesc, projappdate, projcommunity, projlga, projstate, projcost, projtype, projbaselinedata, Projexpoutcome, adultmen, adultfem, totalchildren, totalben, projteamlead, projdepteamlead, projofficer, projliasonofficer, projmeeting1, projmeeting2, projmeeting3, projmousigndate, projstartdate, projenddate, name, path, nameone, pathone, nametwo, pathtwo, namethree, paththree, namefour, pathfour, namefive, pathfive) VALUES ('', '$projcode','$projname','$projdesc', '$projappdate', '$projcommunity', '$projlga', '$projstate', '$projcost', '$projtype', '$projbaselinedata', '$Projexpoutcome', '$adultmen', '$adultfem', '$totalchildren', '$totalben', '$projteamlead', '$projdepteamlead', '$projofficer', '$projliasonofficer', '$projmeeting1', '$projmeeting2', '$projmeeting3', '$projmousigndate', '$projstartdate', '$projenddate','$name','imageone/$name','$nameone','imagetwo/$nameone', '$nametwo', 'imagethree/$nametwo', '$namethree', 'imagefour/$namethree', '$namefour', 'imagefive/$namefour', '$namefive', 'imagesix/$namefive')");
                        $res=mysql_query($qur,$XXXXXXXX);
    ?>
    Thank you. Hope this helps all those that are learning
    Message was edited by: Prince Mike

  • Some dmg images fail to open on 10.6, work on 10.5

    In the process of updating Office 2008 without using MS Auto Update, I downloaded the 12.2.0 update from the MS website as a dmg. The image opens with no problems on machines running 10.5.8. It fails to open on machines running 10.6.3 or 4. I've tested three machines with each version of OS X and the results are consistent. The error given on Snow Leopard is
    "The following disk images couldn't be opened
    Office2008-1220UpdateEN.dmg Image data corrupted"
    The image is being downloaded to each machine perfectly - I've checked the SHA1 hash for the file and it's the same on all machines.
    Using hdiutil to open the image shows that Snow Leopard is having a problem with the checksum of the HFS part of the image:
    Checksumming Driver Descriptor Map (DDM : 0)…
    Driver Descriptor Map (DDM : 0): verified CRC32 $FB1834EF
    Checksumming Apple (Applepartitionmap : 1)…
    Apple (Applepartitionmap : 1): verified CRC32 $3613B27D
    Checksumming disk image (Apple_HFS : 2)…
    disk image (Apple_HFS : 2): checksum failed with error 1000.
    Verification completed…
    Error 1000 (image data corrupted).
    calculated CRC32 $951A6B86, expected CRC32 $49C7A9E5
    To test this yourself, have a look at the MS Office page:
    http://www.microsoft.com/downloads/details.aspx?FamilyID=300133bb-b5f7-4946-bb7b -b0c6c6d6e28c
    Any ideas, anyone?

    JaimieV wrote:
    That just means it's the same on all your machines - doesn't mean it's right.
    True, although if the image is corrupt it's odd that it works on 10.5 and not 10.6.
    Here, with the file I've had for ages that mounts happily on SL,
    SHA1(Office2008-1220UpdateEN.dmg)= 4bab1dd039583f762df1576a97b4eba8cd5b63b7
    Does that match yours?
    No.
    SHA1(Office2008-1220UpdateEN.dmg)= 21dea53cb07e85c4c7adaecad7c2153a52b2fdd6
    Either MS have changed something in that update or my copy is corrupt. Once I get out from behind this firewall I'll try again and see what happens on a machine at home.

  • Custom tag or help in reading an image file into the HTTP stream

    Since under WL we do not deploy our app physically there is no physical
              directory to write our dynamic images to (via kavachart).
              I can call their bean with:
              response.setContentType("image/png");
              ServletOutputStream output = response.getOutputStream();
              but that only allows the image back not the housing page. I can use an
              iframe but there are other issues and was wondering if anyone has idea on a
              custom tag the can easily read a physical directory outside of WL's space
              and include an image file in the http stream. Our app server and webservers
              are in separate zones so I can not just write to some virtual directory on
              the webserver and then serve it up w/ a simple <img> tag.
              BTW Kavachart has some tags referred to in their thin doc but I did not have
              good luck w/ their suggestions.
              Thanks in advance.
              dmg
              [email protected]
              

    Hi joe.com,
    Thanks for the response. It's greatly appreciated. Actually, I'm trying to run this on an Nokia SDK (s80 emulator) and eventually a windows mobile emulator.
    I was wondering if the JSR is the problem. I'm currently using jsr 62 and I'm thinking of trying to 216 to get PP 1.1. I'm wondering if 62 maybe limiting file io?
    any help is appreciated.

  • 'corrupt' dmg images

    A few years ago I backed up all my CDs under OS 9. I can't remember which program I used, but they resulted in 'img' files. These images worked fine under OS 9, and until recently they worked fine in Tiger. All of a sudden, I've found that most of them are 'corrupt'. At least that's what Disk Utility tells me when I use that program to mount them.
    Not so much of a problem I thought - I'll just create fresh .dmg files using the original CDs. I'd read that .img files are notorious for getting corrupted in certain situations, especially under OS X.
    The problem is that when I try creating .dmg images using the original CDs, the process either fails right away, or once the image is created, I'll get the same error about the image being damaged.
    The CDs are all in perfect shape and not scratched. They work fine in OS 9 on my old G4. I seriously doubt that all 25 of the CDs I'm trying to backup are damaged.
    So why does Tiger think that my original CDs, or the images created from them are corrupt, even when saved in .dmg format??
    I know this is long winded, but I need to make one last point - when I scan the original OS 9 CDs in Disk Utility, I am told that they are all damaged to some extent. When I scan them in OS 9 they are fine. Would Tiger think OS 9 CDs are damaged when they are in fact OK?
    Unfortunately the problem is not limited to Disk Utility. I am getting the exact same behavior when creating images using the freeware program FreeDMG.
    iMac (1.8GHz PowerPC G5)   Mac OS X (10.4.9)  

    I did upgrade to 10.4.9 recently, and the problem only occured after that. Repairing read/write enabled volumes is something I will try.
    The underlying issue for me is that I still do not think that any of my MacOS 9 CDs are actually corrupt. I think there is something in 10.4.9 that is interpreted as corruption, but does not prevent their use in MacOS 9 or previous versions of Tiger.
    Of course, I can't prove that. All I have to go on is that they work OK on my G4 and my brother's Mac running Panther.
    Downgrading back to 10.4.8 to test this would be too much trouble I think.
    iMac (1.8GHz PowerPC G5)   Mac OS X (10.4.9)  

  • Mounting a .dmg image (bootable DVD)... please help

    what do these instructions mean exactly??:
    ""Mount the dmg image and drag out the boot DVD and serial text. then burn yourself a disk. once you drag out the 2 items inside the initial joined dmg never mount that bootable DVD""
    I'm trying to make a bootable DVD. how is this done?? i have the .dmg file...now what? thanks

    Double click on the dmg file. A Finder window will open presenting you (in this case at least) two files. Drag the DVD file from the window to your Desktop. I assume from your description that it's an iso file or something like that. Now open your favorite burning app (or Disc Utility) and burn the image file you stored on your Desktop to a DVD.
    Hope that helps you getting started.
    floba
    (MN337)

  • .dmg backup file will not mount.  Failure not an option.

    Let me begin by saying that my lovely wife is, for good reason, currently not very happy with me. Allow me to explain...
    I recently decided that it was time to upgrade her iBook G4 from Tiger (10.4.xx, not sure what it was exactly) to Leopard. Her system easily meets the requirements and she would benefit greatly from being able to use Time Machine as a backup solution.
    I figured that the first step should be making sure that her existing data was properly backed up and could be selectively restored after the installation of Leopard was complete. I could have performed an Archive Installation of Leopard, but she had data files and folders all over the drive and I felt that a clean installation would be best. So anyway, I booted the system with the Leopard install disc and used Disk Utility to create a .dmg backup of the one and only partition on her hard drive. I used all of the default settings for the creation of this .dmg and saved it to my external USB hard drive which is formatted as a Mac OS Extended volume. Disk Utility gave me no errors at all and the image creation seemed to complete successfully.
    With that first step complete, I shut the system down and disconnected the external drive (just to be safe ya know). I, once again, booted the system with the Leopard install disc and "Erase"d the hard drive, created a new Mac OS Extended (Journaled) partition and proceeded with the Leopard installation. Once the installation completed, I ran Software Updates until no more updates were available and I was all the way up to 10.5.5. So far, so good.
    With Leopard now installed and fully updated, I connected my external hard drive to the system, transferred my .dmg file to the desktop and attempted to mount the volume so that I could begin copying my wife's data to her Home folder. However, when I double-clicked the .dmg I received an error stating that the image failed to mount and gave a reason of "no mountable file systems".
    Now before I go any further, I want to stress that my wife's entire digital life is contained in this disk image. She owns her own business and all of the critical data associated with her business is in there. Financial data, several years of tax information, business contacts, many months worth of email... everything. So needless to say, when I saw that error from DiskImageMounter pop up, I immediately felt a little sick to my stomach. Before anybody asks, I have no idea why I didn't test the image file before erasing the hard drive. I should've, I know that, I don't want to talk about it.
    I spent the next 4 - 5 hours desperately trying anything I could think of to get access to the data within this .dmg file. I made a copy of it right away so that I wouldn't inadvertently make the situation even worse. I then tried to use Disk Utility to Restore the image, but received an error stating that the image contained an "Unrecognized Filesystem". I get the same error when I try to either verify or repair the volume with Disk Utility. I tried to attach the image using hdiutil in Terminal but got the same "no mountable file systems" error that I got from DiskImageMounter. I have tried to mount the image with Toast and Mount Me! as well with the same results.
    Here's the hdiutil imageinfo that I get from the dmg:
    Format: UDRW
    Backing Store Information:
    Name: Macintosh HD.dmg
    URL: file://localhost/Users/barkingshins/Desktop/Macintosh%20HD.dmg
    Class Name: CBSDBackingStore
    Format Description: raw read/write
    Checksum Type: none
    partitions:
    appendable: false
    partition-scheme: none
    block-size: 512
    burnable: false
    partitions:
    0:
    partition-length: 53948417
    partition-synthesized: true
    partition-hint: unknown partition
    partition-name: whole disk
    partition-start: 0
    Properties:
    Partitioned: false
    Software License Agreement: false
    Compressed: no
    Kernel Compatible: true
    Encrypted: false
    Checksummed: false
    Checksum Value:
    Size Information:
    Total Bytes: 27621589504
    Compressed Bytes: 27621589504
    Total Non-Empty Bytes: 27621589504
    Sector Count: 53948417
    Total Empty Bytes: 0
    Compressed Ratio: 1
    Class Name: CRawDiskImage
    Segments:
    0: /Users/barkingshins/Desktop/Macintosh HD.dmg
    Resize limits (per hdiutil resize -limits):
    53948417 53948417 53948417
    I'd be happy to provide any other information that anyone thinks might be useful. I'd also be willing to bring the image file to a professional data recovery center and would welcome any recommendations that you might have. As I state in the subject of this post, failure is not really an option and I owe it to my wife to do everything humanly possible to try and arrive at a favorable resolution to this situation.
    The thing that's really prevented me from getting a proper nights sleep for the last two nights is the irony in blowing up her data while trying to get her set up with a decent data backup solution.
    Thank you to anyone who is able to help.

    Whatever you do do not throw out the disk image. Most likely this is a permissions/user account error involving how the disk image was made.
    Try mounting it manually using the Terminal by typing the following into the application:
              hdiutil attach
    Ensure there's a space after "attach" and then drag the disk image to the terminal window, which should complete the full path to the disk image. Then ensure there's a space after the disk image path and type "-mount" so the whole command looks something like this:
              hdiutil attach /path/to/file.dmg -mount
    Then press enter and hope it attaches. If an error occurs, try the command again with "sudo" in front of it as such:
              sudo hdiutil attach /path/to/file.dmg -mount
    Enter your password when prompted and hope that works.

  • Labview crashes when creating large image files

    I have a problem with Labview 6.0.2( I've tested evaluation version 7.0 too).
    I'm constructing a very large image, for example: 4500x4500 pixels. Labview crashes when converting the pixture to a pixmap. The image is fully constructed on my screen (in a picture control), but when converting it to a pixmap (for saving the image in a known format (bmp, jpg, tiff)), Labview crashes.
    I did some testing and when the number of pixels exceeded the limit of 2^24(16777216), the file 'image.cpp' crashes on line 1570. The vi to convert it to a pixmap is: P'icture to pixmap.vi'
    Does someone know a workaround for this problem? Or is there a fix for it?
    Thank you!

    I've tested the 6i version of my VI in Labview 7.0 evalutation version. It raised an error but not the same error:
    d:\lvworm\src\lvsource\compatexport.cpp(37) : DAbort: Called a routine not in the compatibility LVRT table
    $Id: //labview/branches/Wormhole/dev/lvsource/compatexport.cpp#11 $
    0x004BD4CB - LabVIEW_Eval + 0
    0x0EB710D9 - lvs248 + 0
    0x094C87A0 - + 0
    So i replaced the picture VI's with the 7.0 evalutation version VI's, and it worked. It is now possible for me to construct very large image files!
    I see no attached VI to test. But i guess it is also solved in Labview 7.0
    I used this file to convert the picture to image data:
    C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib
    \picture\pictutil.llb\Picture to Pixmap.vi
    And this file to convert image data to bmp:
    C:\Program Files\National Instruments\LabVIEW 7.0 Evaluation\vi.lib\picture\bmp.llb\Write BMP File.vi
    I guess i have to write a workaround for this problem:
    divide the picture in blocks of 4096 x 4096 and then merge the image data arrays of the bloks together.

Maybe you are looking for