Breaking images

Hi,
I want to display the text for example "name of an employee" from an image.
i.e., this text is store in .bmp format.
how to break that image.

Hi
Could u make ur qtn a bit clear......

Similar Messages

  • 10.6.8 update breaks image capture?

    Image capture works fine until it gets half-way through its final scanning operation, then it quits. This problem began after I completed an Apple suggested 10.6.8 update. I see indications that others have experienced this, but can't find how the problem was overcome. Help?

    Thanks. I'm on USB, have run disk permissions, tosed out and replaced Image Capture Permissions file, etc., etc., over an exhausting 5 day period. Since both my HP printer-scanner (HP Photosmart premium C309g) and flatbed (Canon Lide 35) are still able to deliver a scan using their own more complex internal scanning software rather than the preferred more easily used Image Capture software, and since the printing side of the HP machine prints without problems, I am inclined to basically agree with you. It appears that the HP and Canon drivers can't quite handle something in the Image Capture-related part of the 10.6.8 update, and I'm hoping that eventually HP and Canon will have new updates that can work with Image Capture.
    I ran across an HP employee's suggestion on the internet last night. He was aware of the problem and identified a different driver that is supposed to repair the problem for wireless-connected versions of my Photosmart, but I don't know about USB connected versions. I may try to get back to him to ask about using that driver on USB based printers later, but have run out of exploration time at this point.

  • Need help urgently in blending images

    Hi below are the codes for blending two images together in a mosaic...could anybody tell me how can i actually change the alpha to the same degree?? Thanks :)
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.util.Random;
    import com.sun.image.codec.jpeg.*;
    public class ShowOff extends Component
    public static void main(String[] args)
    try
    *The image is loaded either from this default filename or first
    *command-line arguement specifies what string will be displayed.
    *The third specifies at what point in the string the background
    *color will change.
    String filename = "test.jpg";
    String message = "Java2D";
    int split = 4;
    if(args.length>0) filename = args[0];
    if(args.length>1) message = args[1];
    if(args.length>2) split = Integer.parseInt(args[2]);
    ApplicationFrame f = new ApplicationFrame("--Image Mosaic--");
    f.setLayout(new BorderLayout());
    ShowOff showOff = new ShowOff(filename, message, split);
    f.add(showOff, BorderLayout.CENTER);
    f.setSize(f.getPreferredSize());
    f.center();
    f.setResizable(true);
    f.setVisible(true);
    catch (Exception e)
    System.out.println(e);
    System.exit(0);
    private BufferedImage mImage;
    private Font mFont;
    private String mMessage;
    private int mSplit;
    private TextLayout mLayout;
    public ShowOff(String filename, String message, int split)throws IOException, ImageFormatException{
    //get specified image
    InputStream in = getClass().getResourceAsStream(filename);
    JPEGImageDecoder decoder = JPEGCodec.createJPEGDecoder(in);
    mImage = decoder.decodeAsBufferedImage();
    in.close();
    //save the message and split
    mMessage = message;
    mSplit = split;
    //set our size to match the image's size
    setSize((int)mImage.getWidth(), (int)mImage.getHeight());
    public void paint(Graphics g)
    Graphics2D g2 = (Graphics2D)g;
    //Turn on antialiasing
    g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    //AffineTransform aTranw1 = new AffineTransform();
    // aTranw1.translate(1.0f, 1.0f);
    // g2.transform(aTranw1);
    drawTileImage(g2);
    drawImageMosaic(g2);
    protected void drawTileImage(Graphics2D g2)
    Graphics2D g2w = (Graphics2D) g2;
    //The RenderingHints class contains rendering hints that can be used
    //by the Graphics2D class
    RenderingHints rhw = g2w.getRenderingHints();
    rhw.put (RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
    g2w.setRenderingHints(rhw);
    String filenamew = "C:/mosaic/redflower6.gif";
    Image imgw = getToolkit().getImage(filenamew);
    AffineTransform aTranw = new AffineTransform();
    aTranw.translate(1.0f, 1.0f);
    g2w.transform(aTranw);
    g2w.drawImage(imgw, new AffineTransform(), this);
    protected void drawImageMosaic(Graphics2D g2)
    //break image up into tiles. Draw each tile with its own transparency,
    //allowing background to show through to varying degrees.
    int side = 50;
    int width = mImage.getWidth();
    int height = mImage.getHeight();
    for(int y = 0; y < height; y+= side)
    for(int x = 0; x < width; x+= side)
    //calculate an appropriate transparency value.
    float xBias = (float)x / (float)width;
    float yBias = (float)y / (float)height;
    float alpha = 1.0f - Math.abs(xBias - yBias);
    g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alpha));
    //draw subimage
    int w = Math.min(side, width - x);
    int h = Math.min(side, height - y);
    BufferedImage tile = mImage.getSubimage(x,y,w,h);
    g2.drawImage(tile,x,y,null);
    //reset the composite
    g2.setComposite(AlphaComposite.getInstance(AlphaComposite.SRC_OVER, 0.5f));
    }

    import java.awt.*;
    import java.awt.event.*;
    import java.awt.image.BufferedImage;
    import java.io.*;
    import java.net.*;
    import javax.imageio.ImageIO;
    public class BlendingTest
        public BlendingTest()
            BlendingPanel blendingPanel = new BlendingPanel();
            BlendingControl control = new BlendingControl(blendingPanel);
            Frame f = new Frame();
            f.addWindowListener(new WindowAdapter()
                public void windowClosing(WindowEvent e)
                    System.exit(0);
            f.add(blendingPanel);
            f.add(control.getUIPanel(), "South");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
        public static void main(String[] args)
            new BlendingTest();
    class BlendingPanel extends Panel
        private BufferedImage[] images;
        private float alpha;
        public BlendingPanel()
            alpha = 0.0f;
            loadImages();
        public void paint(Graphics g)
            Graphics2D g2 = (Graphics2D)g;
            int w = getWidth();
            int h = getHeight();
            int x, y, imageWidth, imageHeight;
            float alphaVal;
            AlphaComposite ac;
            for(int j = 0; j < images.length; j++)
                imageWidth = images[j].getWidth();
                imageHeight = images[j].getHeight();
                x = (w - imageWidth)/2;
                y = (h - imageHeight)/2;
                if(j == 0)
                    alphaVal = alpha;
                else
                    alphaVal = 1.0f - alpha;
                ac = AlphaComposite.getInstance(AlphaComposite.SRC_OVER, alphaVal);
                g2.setComposite(ac);
                g2.drawImage(images[j], x, y, this);
        public void update(Graphics g)
            paint(g);
        public void setAlpha(float value)
            alpha = value;
            repaint();
        private void loadImages()
            String[] fileNames = { "greathornedowl.jpg", "mtngoat.jpg" };
            images = new BufferedImage[fileNames.length];
            for(int j = 0; j < images.length; j++)
                try
                    URL url = getClass().getResource("images/" + fileNames[j]);
                    images[j] = ImageIO.read(url);
                catch(MalformedURLException mue)
                    System.err.println("url: " + mue.getMessage());
                catch(IOException ioe)
                    System.err.println("read: " + ioe.getMessage());
    class BlendingControl implements AdjustmentListener
        BlendingPanel blendingPanel;
        Scrollbar scrollbar;
        int maximum;
        int visibleAmount;
        public BlendingControl(BlendingPanel bp)
            blendingPanel = bp;
            maximum = 100;
            visibleAmount = 10;
            scrollbar = new Scrollbar(Scrollbar.HORIZONTAL, 0, visibleAmount, 0, maximum);
            scrollbar.addAdjustmentListener(this);
        public void adjustmentValueChanged(AdjustmentEvent e)
            // see scrollbar api to understand divisor expression
            float value = e.getValue()/(float)(maximum - visibleAmount);
            blendingPanel.setAlpha(value);
        public Panel getUIPanel()
            Panel panel = new Panel(new BorderLayout());
            panel.add(scrollbar);
            return panel;
    }

  • Acrobat v9 JavaScript Alert Box - any way to add space or line break after each array item?

    I have a Document level Javascript used to identify blank required fields and is triggered on document actions, Print and Save. The script identifies the blank required fields, counts them, and outputs to an Alert box indicating the number of required fields blank and lists the fields by tooltip name. The script identifies the required fields by an asterisk at the end of each tool tip.
    My question is there any way to add a space or a line break after the comma for each listed item?
    Here is an image of the output where the listed items are all run together.
    Here is the code:
    function validateFields()
    //a counter for the number of empty fields
    var flg = 0
    // count all the form fields
    var n = this.numFields
    //create an array to contain the names of required fields
    //if they are determined to be empty
    var fArr = new Array();
    //loop through all fields and check for those that are required
    // all fields that have a '*' in their tool tip are required
    for(var i = 0;i<n;i++){
    var fn = this.getNthFieldName(i);
    var f = this.getField(fn);
    //tool tip is the fields\'s 'userName' property;
    var tt = f.userName
    //test for the '*';
    if(tt.indexOf('*')!=-1 && f.value == f.defaultValue){
    //increment the counter of empty fields;
    flg++;
    //add the fields userName (tool tip) to the list of empty field names;
    fArr[fArr.length] = tt;
    //now display a message if there are empty fields
    if(flg>0){
    app.alert('There are '+flg+' fields that require a value\n\n'+ fArr,3)
    else{
    this.print();

    Thank you! The alert box array items now have a line break, image below.  You know you have made my day and possibly several weeks as now I have more understanding about how to apply everything I have been reading in the Acrobat JavaScript guide and of course as soon as you pointed out using a "join", that triggered some old-days of working with Access and SQL queries.
    I will work on the required attribute to see how I might reference it.  I am laughing at myself now - good luck to me in figuring it out as I was very stick-in-the-mud regarding the line break issue.
    Thanks again and here is the result of the updated code:

  • Error deleting VHD: There is currently a lease on the blob and no lease ID was specified in the request

    When attempting to delete a VHD's blob you may receive the following error:
    There is currently a lease on the blob and no lease ID was specified in the request
    While these errors are expected if a VHD is still registered as a disk or image in the portal, we have identified an issue where a lease remains even if the blob is not registered as a disk or image in the portal.
    If you receive one of these errors, first make sure the VHD is not in use:
    In the Windows Azure management portal, if the disk shows up under Virtual Machines,
    Disks, and the Attached To column is not blank, you should first remove that VM in the
    Attached To column by going to VM Instances, selecting the VM, then clicking
    Delete.
    If Attached To is blank, or the VM in the Attached To column was already removed, try removing the disk by highlighting it under
    Disks and clicking Delete Disk (this will not physically delete the VHD from blob storage, it only removes the disk object in the portal). If you have multiple pages of disks it can be easier to search for a specific disk by
    clicking the magnifying glass icon at the top right.
    If Delete Disk is grayed out, or the disk is not listed under Disks, but you still cannot reuse it or delete it, review the options below.
    Breaking the lease
    You can use the
    Lease Blob API to break the lease in this scenario, which is also available in the Windows Azure PowerShell assembly
    Microsoft.WindowsAzure.StorageClient.dll using
    LeaseAction Enumeration.
    To use the BreakLease.ps1 script to break the lease:
    Download Azure PowerShell by clicking Install under Windows here:
    http://www.windowsazure.com/en-us/manage/downloads/
    Start, Search, type Windows Azure PowerShell and open that console.
    Run Get-AzurePublishSettingsFile to launch a browser window to
    https://windows.azure.com/download/publishprofile.aspx to download the management certificate in a
    .publishsettings file in order to manage your subscription with PowerShell.
    Get-AzurePublishSettingsFile
    Run Import-AzurePublishSettingsFile to import the certificate and subscription information. Replace the path below with the full path to the .publishsettings file if you didn't save it to your
    Downloads folder. If you saved it to Downloads you can run it as-is, otherwise replace the path with the full path to the
    .publishsettings file.
    Import-AzurePublishSettingsfile $env:userprofile\downloads\*.publishsettings
    Copy the script below into a text editor such as Notepad and save it as
    BreakLease.ps1.
    Run Set-ExecutionPolicy to allow script execution:
    Set-ExecutionPolicy unrestricted
    Run BreakLease.ps1 with the URL to the VHD in order to break the lease. The script obtains the necessary storage account information, checks that the blob is not currently registered as a disk or as an image, then proceeds to break the
    current lease (if any).
    Sample output:
    BreakLease.ps1 -Uri 'http://clstorage.blob.core.windows.net/vhds/testvm1-testvm1-2012-06-26.vhd'
    Processing http://clstorage.blob.core.windows.net/vhds/testvm1-testvm1-2012-06-26.vhd
    Reading storage account information...
    Confirmed - storage account 'clstorage'.
    Checking whether the blob is currently registered as a disk or image...
    Confirmed - the blob is not in use by the Windows Azure platform.
    Inspecting the blob's lease status...
    Current lease status: Locked
    Unlocking the blob...
    Current lease status: Unlocked
    Success - the blob is unlocked.
    BreakLease.ps1
    Param([string]$Uri = $(Read-Host -prompt "Please specify a blob URL"))
    $ProgressPreference = 'SilentlyContinue'
    echo "Processing $Uri"
    echo "Reading storage account information..."
    $acct = Get-AzureStorageAccount | ? { (new-object System.Uri($_.Endpoints[0])).Host -eq (new-object System.Uri($Uri)).Host }
    if(-not $acct) {
    write-host "The supplied URL does not appear to correspond to a storage account associated with the current subscription." -foregroundcolor "red"
    break
    $acctKey = Get-AzureStorageKey ($acct.StorageAccountName)
    $creds = "DefaultEndpointsProtocol=http;AccountName=$($acctKey.StorageAccountName);AccountKey=$($acctKey.Primary)"
    $acctobj = [Microsoft.WindowsAzure.CloudStorageAccount]::Parse($creds)
    $uri = $acctobj.Credentials.TransformUri($uri)
    echo "Confirmed - storage account '$($acct.StorageAccountName)'."
    $blobclient = New-Object Microsoft.WindowsAzure.StorageClient.CloudBlobClient($acctobj.BlobEndpoint, $acctobj.Credentials)
    $blobclient.Timeout = (New-TimeSpan -Minutes 1)
    $blob = New-Object Microsoft.WindowsAzure.StorageClient.CloudPageBlob($uri, $blobclient)
    echo "Checking whether the blob is currently registered as a disk or image..."
    $disk = Get-AzureDisk | ? { (new-object System.Uri($_.MediaLink)) -eq $blob.Uri }
    if($disk) {
    write-host "The blob is still registered as a disk with name '$($disk.DiskName)'. Please delete the disk first." -foregroundcolor "red"
    break
    $image = Get-AzureVMImage | ? { $_.MediaLink -eq $blob.Uri.AbsoluteUri }
    if($image) {
    write-host "The blob is still registered as an OS image with name '$($image.ImageName)'. Please delete the OS image first." -foregroundcolor "red"
    break
    echo "Confirmed - the blob is not in use by the Windows Azure platform."
    echo "Inspecting the blob's lease status..."
    try {
    $blob.FetchAttributes()
    } catch [System.Management.Automation.MethodInvocationException] {
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    if($blob.Properties.LeaseStatus -ne [Microsoft.WindowsAzure.StorageClient.LeaseStatus]::Locked) {
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    break
    echo "Unlocking the blob..."
    $request = [Microsoft.WindowsAzure.StorageClient.Protocol.BlobRequest]::Lease($uri, 0, [Microsoft.WindowsAzure.StorageClient.Protocol.LeaseAction]::Break, $null)
    $request.Timeout = $blobclient.Timeout.TotalMilliseconds
    $acctobj.Credentials.SignRequest($request)
    try {
    $response = $request.GetResponse()
    $response.Close()
    catch {
    write-host "The blob could not be unlocked:" -foregroundcolor "red"
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    $blob.FetchAttributes()
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    Alternate method: make a copy of the VHD in order to reuse a VHD with a stuck lease
    If you have removed the VM and the disk object but the lease remains and you need to reuse that VHD, you can make a copy of the VHD and use the copy for a new VM:
    Download CloudXplorer. This will work with other
    Windows Azure Storage Explorers but for the sake of brevity these steps will reference CloudXplorer.
    In the Windows Azure management portal, select Storage on the left, select the storage account where the VHD resides that you want to reuse, select
    Manage Keys at the bottom, and copy the Primary Access Key.
    In CloudXplorer, go to File, Accounts,
    New, Windows Azure Account and enter the storage account name in the
    Name field and the primary access key in the Secret Key field. Leave the rest on the default settings.
    Expand the storage account in the left pane in CloudXplorer and select the
    vhds container (or if the VHD in question is one uploaded to a different location, browse to that location instead).
    Right-click the VHD you want to reuse (which currently has a stuck lease), select
    Rename, and give it a different name. This will throw the error
    could not rename…there is currently a lease on the blob… but click
    Yes to continue, then View, Refresh (F5) to refresh and you will see it did make a copy of the VHD since it could not rename the original.
    In the Azure management portal, select Virtual Machines,
    Disks, then Create Disk at the bottom.
    Specify a name for the disk, click the folder icon under VHD URL to browse to the copy of the VHD you just created, check the box for
    This VHD contains an operating system, select the drop-down to specify if it is
    Windows or Linux, then click the arrow at the bottom right to create the disk.
    After the portal shows Successfully created disk <diskname>, select
    New at the bottom left of the portal, then Virtual Machine,
    From Gallery, My Disks, and select the disk you just created, then proceed through the rest of the wizard to create the VM.
    Thanks,
    Craig

    Just to add an update to this, it looks like the namespaces have changed with the latest version of the SDK. I have updated the script to use the new namespaces, namely: Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob and Microsoft.WindowsAzure.Storage.CloudStorageAccount.
    Param([string]$Uri = $(Read-Host -prompt "Please specify a blob URL"))
    $ProgressPreference = 'SilentlyContinue'
    echo "Processing $Uri"
    echo "Reading storage account information..."
    $acct = Get-AzureStorageAccount | ? { (new-object System.Uri($_.Endpoints[0])).Host -eq (new-object System.Uri($Uri)).Host }
    if(-not $acct) {
    write-host "The supplied URL does not appear to correspond to a storage account associated with the current subscription." -foregroundcolor "red"
    break
    $acctKey = Get-AzureStorageKey ($acct.StorageAccountName)
    $creds = "DefaultEndpointsProtocol=http;AccountName=$($acctKey.StorageAccountName);AccountKey=$($acctKey.Primary)"
    $acctobj = [Microsoft.WindowsAzure.Storage.CloudStorageAccount]::Parse($creds)
    $uri = $acctobj.Credentials.TransformUri($uri)
    echo "Confirmed - storage account '$($acct.StorageAccountName)'."
    $blob = New-Object Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob($uri, $creds)
    echo "Checking whether the blob is currently registered as a disk or image..."
    $disk = Get-AzureDisk | ? { (new-object System.Uri($_.MediaLink)) -eq $blob.Uri }
    if($disk) {
    write-host "The blob is still registered as a disk with name '$($disk.DiskName)'. Please delete the disk first." -foregroundcolor "red"
    break
    $image = Get-AzureVMImage | ? { $_.MediaLink -eq $blob.Uri.AbsoluteUri }
    if($image) {
    write-host "The blob is still registered as an OS image with name '$($image.ImageName)'. Please delete the OS image first." -foregroundcolor "red"
    break
    echo "Confirmed - the blob is not in use by the Windows Azure platform."
    echo "Inspecting the blob's lease status..."
    try {
    $blob.FetchAttributes()
    } catch [System.Management.Automation.MethodInvocationException] {
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    if($blob.Properties.LeaseStatus -ne [Microsoft.WindowsAzure.Storage.StorageClient.LeaseStatus]::Locked) {
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    break
    echo "Unlocking the blob..."
    $request = [Microsoft.WindowsAzure.Storage.StorageClient.Protocol.BlobRequest]::Lease($uri, 0, [Microsoft.WindowsAzure.Storage.StorageClient.Protocol.LeaseAction]::Break, $null)
    $request.Timeout = $blobclient.Timeout.TotalMilliseconds
    $acctobj.Credentials.SignRequest($request)
    try {
    $response = $request.GetResponse()
    $response.Close()
    catch {
    write-host "The blob could not be unlocked:" -foregroundcolor "red"
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    $blob.FetchAttributes()
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    write-host "Success - the blob is unlocked." -foregroundcolor "green"

  • Small patch for New-IsoFile

    I made a slight change in how New-IsoFile creates the temporary file if needed. The original used a timestamp for the filename, but I wanted to use the real GetTempFileName-call. The two changed parts are bolded below. I would appreciate any feedback!
    8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - - 8< - - - - - 
    function New-IsoFile
      <#
       .Synopsis
        Creates a new .iso file
       .Description
        The New-IsoFile cmdlet creates a new .iso file containing content from chosen folders
       .Example
        New-IsoFile "c:\tools","c:Downloads\utils"
        Description
        This command creates a .iso file in $env:temp folder (default location) that contains c:\tools and c:\downloads\utils folders. The folders themselves are added in the root of the .iso image.
       .Example
        dir c:\WinPE | New-IsoFile -Path c:\temp\WinPE.iso -BootFile etfsboot.com -Media DVDPLUSR -Title "WinPE"
        Description
        This command creates a bootable .iso file containing the content from c:\WinPE folder, but the folder itself isn't included. Boot file etfsboot.com can be found in Windows AIK. Refer to IMAPI_MEDIA_PHYSICAL_TYPE enumeration for possible media
    types:
          http://msdn.microsoft.com/en-us/library/windows/desktop/aa366217(v=vs.85).aspx
       .Notes
        NAME:  New-IsoFile
        AUTHOR: Chris Wu
        LASTEDIT: 03/06/2012 14:06:16
     #>
      Param (
        [parameter(Position=0,Mandatory=$true,ValueFromPipeline=$true)]$Source,
        [parameter(Position=1)][string]$Path,
        [string] $BootFile = $null,
        [string] $Media = "Disk",
        [string] $Title = (Get-Date).ToString("yyyyMMdd-HHmmss.ffff"),
        [switch] $Force
      )#End Param
      Begin {
        ($cp = new-object System.CodeDom.Compiler.CompilerParameters).CompilerOptions = "/unsafe"
        if (!("ISOFile" -as [type])) {
          Add-Type -CompilerParameters $cp -TypeDefinition @"
    public class ISOFile
        public unsafe static void Create(string Path, object Stream, int BlockSize, int TotalBlocks)
            int bytes = 0;
            byte[] buf = new byte[BlockSize];
            System.IntPtr ptr = (System.IntPtr)(&bytes);
            System.IO.FileStream o = System.IO.File.OpenWrite(Path);
            System.Runtime.InteropServices.ComTypes.IStream i = Stream as System.Runtime.InteropServices.ComTypes.IStream;
            if (o == null) { return; }
            while (TotalBlocks-- > 0) {
                i.Read(buf, BlockSize, ptr); o.Write(buf, 0, bytes);
            o.Flush(); o.Close();
        }#End If
        if ($BootFile -and (Test-Path $BootFile)) {
          ($Stream = New-Object -ComObject ADODB.Stream).Open()
          $Stream.Type = 1  # adFileTypeBinary
          $Stream.LoadFromFile((Get-Item $BootFile).Fullname)
          ($Boot = New-Object -ComObject IMAPI2FS.BootOptions).AssignBootImage($Stream)
        }#End If
        $MediaType = @{CDR=2; CDRW=3; DVDRAM=5; DVDPLUSR=6; DVDPLUSRW=7; `
          DVDPLUSR_DUALLAYER=8; DVDDASHR=9; DVDDASHRW=10; DVDDASHR_DUALLAYER=11; `
          DISK=12; DVDPLUSRW_DUALLAYER=13; BDR=18; BDRE=19 }
        if ($MediaType[$Media] -eq $null) { write-debug "Unsupported Media Type: $Media"; write-debug ("Choose one from: " + $MediaType.Keys); break }
        ($Image = new-object -com IMAPI2FS.MsftFileSystemImage -Property @{VolumeName=$Title}).ChooseImageDefaultsForMediaType($MediaType[$Media])
        if ($Path) {
            if ((Test-Path $Path) -and (!$Force)) { "File Exists $Path"; break }
            if (!($Target = New-Item -Path $Path -ItemType File -Force)) { "Cannot create file $Path"; break }
        } else {
            if (!($Target = [IO.Path]::GetTempFileName() | Rename-Item -NewName { $_ -replace 'tmp$', 'iso' } –PassThru)) { "Cannot create ISO in %TEMP%"; break }
      Process {
        switch ($Source) {
          { $_ -is [string] } { $Image.Root.AddTree((Get-Item $_).FullName, $true); continue }
          { $_ -is [IO.FileInfo] } { $Image.Root.AddTree($_.FullName, $true); continue }
          { $_ -is [IO.DirectoryInfo] } { $Image.Root.AddTree($_.FullName, $true); continue }
        }#End switch
      }#End Process
      End {
        if ($Boot) { $Image.BootImageOptions=$Boot }
        $Result = $Image.CreateResultImage()
        [ISOFile]::Create($Target.FullName,$Result.ImageStream,$Result.BlockSize,$Result.TotalBlocks)
        $Target
      }#End End
    }#End function New-IsoFile
          

    Hi,
    I recommend posting this on the QandA tab of the gallery item:
    http://gallery.technet.microsoft.com/scriptcenter/New-ISOFile-function-a8deeffd/view/Discussions#content
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • How Signature Capture Works...

    Hi All,
    I am using MI 7.0.
    I understand the functionality of Signature capture. It is kinda transferring a file (which contains the signature) from the client to the backend.
    According to my understanding, the binary file of signature is broken into chunks of 255bytes and stored as items of a particular SyncBo, passed to the middleware and backend and reconstructed as an image again.
    If this understanding is right, I want to use the same functionality to send any file from the client to backend and also from the backend to the client.
    I had posted one thread before too which clarified many things- Re: Attaching a pdf file in the backend
    I have some more questions, In signature capture, I assume, the breaking of a image into smalled chunks and recollecting of them happens automatically.
    How can I do that with other files, like any other image?
    What is the process of breaking image and recollecting into the backend?
    (Like creating new SyncBOs, BAPI Wrappers for it and all, etc.)
    How will this process be automated in a way that on the client, the user just browses the image from his PDA, attaches it, and it goes to the back on next sync.
    I am not sure if the question is clear, Please ask for more clarifictions..
    Thanks
    Ankur

    Hi Ankur,
    well, lets start this discussion with a short description:
    The split process does not relly happen automatically as you said. Any file on the PC is stored in bytes and can be read as a usual text file. Java does not care i you read a textfile, an image, an app or whatever - it is just a 8bit byte structure....and so it can be displayed as a text structure. So if you show the image on the screen and you want to send it to the backend - mark it and start the process. This process reads the file form disc as a textfile, then splits it into chunks of 255 chars. So you have a string array in memory. This can be stored as SyncBO - same as the long text functionality for any other syncBO. a Text field with the chars and an index field - to know the correct order at the end.
    That is all, storeit in an syncBo and sync. It goes to the backend. There you need to put the information together and store it as file. No issue - just development.
    The same happens the way back: split the info in the backend, sync send it to the client, there take this information and store it to the file system of the device. Then you can display it.
    Hope that makes it clear - rest should be straight forward development.....
    Regards,
    Oliver

  • Video layers in CS6 - not reflecting file changes

    we do 3D rendering, breaking images into 3D render passes that we render to a directory, then load those passes up as video layers to put them back together in Photoshop.  Everyday we make 3D adjustments, render every night (to files of same name in same location), and in the morning pull up the PSD- where all the passes SHOULD have updated.
    This workflow all worked fine with CS5.5 extended, but in CS6, the video layers don't seem to be automatically updating, and we're getting the prior day's definitition, while there are no indications that the file isn't found.
    This problem is on Windows7 machines, and we've disabled the windows search service thinking the defnitions were still in the cache - to no avail.
    Any help is appreciated- Jon

    My jsp code
    <%@page language="java"
         import="java.sql.*,java.io.*,mySAP.*,java.net.URL;"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
    <%!StringBuffer stringbuffer = new StringBuffer();
         int testemp;%>
    <%
         String dofrom;
         String doto;
         String s;
         String s1;
         dofrom = request.getParameter("DOFrom");
         doto = request.getParameter("DOTo");
         ResultSet resultset;
         String flag = request.getParameter("dall");
         mySAP.JcoTest2 obj = new mySAP.JcoTest2();
         //StringBuffer sb = obj.fetchData("one", "two");
         String sb = obj.checking();
         out.println(sb);
         try {
              StringBuffer stringbuffer = new StringBuffer();
              String separator = System.getProperty("file.separator");
              String path = System.getProperty("user.dir") + separator;
         } catch (Exception e) {
              out.println("error%%%%%%%%%" + e);
    %>
    </body>
    </html>here i am calling JcoTest2 from mySAP pack...
    first time it is showing correct output of JcoTest2 .if i change JcoTest2 and copy and run .jsp is outputing the old program value.
    .I used to complie my program in local machine and copy the class file and jsp file into the server(linux).
    Regards

  • SCCM 2012 R2 With MDT 2012 AND MDT 2013 Side by Side

    Currently we're running 2012 R2 CU3 with MDT 2012 integrated into it. We're looking at upgrading to MDT 2013 (whatever the latest update is). What I'm wondering, and can't seem to find any information on, is if we can continue to use our MDT 2012 boot
    .wims/OSD Task Sequences/etc  until such time as we create and test new ones or are we going to have to update everything right away?

    Are you sure you are using MDT *2013* with ConfigMgr 2012 *R2*? That's not a supported configuration and I think there are multiple technical problems with this combination.
    The task sequences themselves don't change -- because they are ConfigMgr task sequences -- but the MDT tasks must be updated to use the MDT 2013 tasks. Boot image use is partially dependent upon the OS you are deploying however only WinPE 3.1 and WinPE 5.0
    based boot images are supported in R2.
    Jason | http://blog.configmgrftw.com | @jasonsandys
    Did you mean to ask if we were running MDT 2012 with ConfigMgr 2012 R2? Then yes we are. We did the upgrade from SP1 CU2 to R2 CU3 a couple of weeks ago but haven't upgraded MDT to 2013 yet. That's our next step but we also don't want to take down/break imaging
    capability if we can help it (major college, staff/students constantly breaking stuff, etc).

  • Activation of Creative Cloud packages created with CCP 1.3 breaks when deploying via imaging

    Descption of the problem:
    If Creative Cloud products are deployed as a part of an OS image and the packages are created with CCP for Windows 1.3, the activation still breaks.
    The problem affects most of our class room computers but, however, not all of them.
    When a standard user tries to open any of the products, an error message is displayed instead of opening the the program. 
    Configuration error
    A problem has occurred with the licensing of this product.
    Restart your computer and re-launch the product.
    If this problem still occurs after restarting, contact Customer Support for further assistance, and mention the error code shown at the bottom of this screen.
    Error: 213:19
    Installed Products: Acrobat XI,Ai,Dw,Fl,Id and Ps 
    CCP version: 1.3.0, build 66
    CCP Workstation OS: Windows 7 SP1 32-bit
    Target OS: Windows 7 SP1 64-bit
    Workaround: running APTEE on an resolves the issue every time. Yet according to Adobe this should not be necessary.
    Deployment workflow
    1. Create a single package containg all of the products with CCP and an Enterprise CC serial number.
    2. Customize Acrobat .mst file for the target language with Adobe Customization Wizard XI, leaving the serial empty. 
    3. Create a batch file to run ExceptionDeployer in pre mode, install the the other products and finally run ExceptionDeployer in post mode.
    4. Install the the package to a model computer using the batch.
    5. Run Windows's built-in sysprep tool  with OOBE and shutdown switches.
    6. Capture the image from the model computer and deploy it to other computers.
    We can unfortunately reliably reproduce this issue and we are, if not happy, but at least willing to provide you all the required logs and other info to find a real solution.

    Hi PT_luas,
    Please send me an email: [email protected] so that we may arrange a callbak.
    Regards,
    Romit Sinha

  • Image not printed in SapScript, only after page break

    Hi,
    I have a problem in printing an image (stored as text) in a sapscript. The image was uploaded correctly from a TIF file in tcode SE78. The image contains a signature and I need to print it at variable positions within the form. That is I need to print it in the MAIN window. The image does not get printed when a page break occurs when outputing the text element containing the picture. If the page break occurs when outputing any (other) text, the image is printed correctly (after that text).
    Has anybody else encountered this problem? Could it be a sapscript bug?
    Thx in advance.
    Claudiu

    >
    > Looks like the last page is not called !!! I can see data only on one page and it shows page 1 of 1.
    >
    > "make sure ST_TEMP is filled with data" how do I do this ?? My program line node has the data filled in the internal table it_temp and the loop node has the data transferred to st_temp for every row. How can I debug the program lines code ??
    > > Have a break <username> in the program lines. and check it_temp has data in it.
    > "use a command and call the last page at end of the loop on internal table"...how to do this ?
    > > like program lines there is a "command line" do a little search on SDN for more info on how to use command lines for next page.
    >

  • Getting "layer break" error message when trying to Preview a single sided DVD, or build an ISO image or disk folder

    Hi!  Hoping someone might be able to help with an odd problem.  I haven't found anything in the forums or the web that match my symptoms.
    I've been using Encore CS6 (v6.0.1.013) on a MacBook retina over the past year to successfully create a number of single sided DVDs with menus, chapters, and all that.  I usually make a copy of a previous DVD project, and then replace video assets with the new files and transcodes, move and rename chapter markers, and rework the menus in Photoshop.  I then will build ISO images for both DVD and Blu-Ray (both single-sided), and use those to burn many copies of each DVD for clients.
    This week, while developing one of these projects, when trying to build a DVD ISO image that looked like it would fit on a 4.7 GB DVD, I received the "layer break" message ("The chosen layer break does not satisfy dual layer requirements.  To fix this, either set a new layer break manually, or choose to set layer break automatically.") because (I'm guessing) the material was too long for the 4.7 GB DVD (the Build screen now shows about 5GB of material are in the project).  This is the first time I've seen that message - usually Encore just tells me the material is too big for the DVD.
    I re-transcoded the material down to well under 4.7 GB (about 3.9 GB), reverted and replaced the transcoded files, and now the DVD build screen shows that there are about 700MB free on a 4.7 GB DVD.  But I still have not been able to build any version of the DVD (image, folder, disc), without getting the "layer break" message.  I also now get this same layer break message when trying to "Preview from Here" any menu, killing my ability to preview the DVD menus in Encore.
    Just to see what would happen, I chose an 8.4GB Dual Layer DVD, and chose "manual" instead of "automatic" for the layer break selection, but never got the layer break selection dialog box, just the "layer break" error message.
    I typically build both DVD and Blu-Ray images from the same material in the same project.  I use different transcoding settings for each, and I have been able to build a Blu-Ray ISO without this "layer break" error on the Blu-Ray build (which is about 24.5GB when built).  And as I mentioned before, this is the first project on which I've even seen this layer break message.
    Any suggestions would be greatly appreciated!  I'd rather not recreate the project from scratch, but I'm worried that I may have to.
    Thanks
    Jon

    The total project being small enough may mean you have one layer that is too big. Both layers have to be smaller than half the disk, right?
    Be sure you "run as administrator" for dual layer projects.
    Encore may set the layer break correctly if it finds a good place, but there are numerous complaints about it being unreliable.
    Build to a folder (no layer break is set), then use ImgBurn to build and ask to be prompted for layer break. ImgBurn is also unreliable under some circumstances.
    The most frequent problems appear to be when there is no good location for a break. Do a search for "layer break imgburn" and you will see a variety of strategies.
    http://forum.imgburn.com/index.php?/topic/1777-how-to-create-a-double-layer-dvd-video-imag e-file-using-imgburn/
    Also see these posts:
    Neil Wilkes
    http://forums.adobe.com/message/3466255#3466255
    Neil Wilkes
    http://forums.adobe.com/message/4054265#4054265
    Neil Wilkes
    http://forums.adobe.com/message/4054269#4054269
    Jon Geddes
    http://forums.adobe.com/message/4002647#4002647
    shuchi shrivastava
    http://forums.adobe.com/message/3905911#3905911
    Jon Geddes and Neil Wilkes
    http://forums.adobe.com/message/4003221#4003221

  • Hi, how can i break the value for a row and column once i have converted the image to the array?????​??

    Hi, I would like to know how can i break the value for a row and column once i have converted the image to the array. I wanted to make some modification on the element of the array at a certain position. how can i do that?
    At the moment (as per attachhment), the value of the new row and column will be inserted by the user. But now, I want to do some coding that will automatically insert the new value of the row and the column ( I will use the formula node for the programming). But the question now, I don't know how to split the row and the column. Is it the value of i in the 'for loop'? I've  tried to link the 'i' to the input of the 'replace subset array icon' , but i'm unable to do it as i got some error.
    Please help me!
    For your information, I'm using LABView 7.0.

    Hi,
    Thanks for your reply.Sorry for the confusion.
    I manage to change the array element by changing the row and column value. But, what i want is to allow the program to change the array element at a specified row and column value, where the new value is generated automatically by the program.
    Atatched is the diagram. I've detailed out the program . you may refer to the comments in the formula node. There are 2 arrays going into the loop. If a >3, then the program will switch to b, where if b =0, then the program will check on the value of the next element which is in the same row with b but in the next column. But if b =45, another set of checking will be done at a dufferent value of row and column.
    I hope that I have made the problem clear. Sorry if it is still confusing.
    Hope you can help me. Thank you!!!!
    Attachments:
    arrayrowncolumn2.JPG ‏64 KB

  • Placing images from Bridge CC breaks Indesign Doc

    This seems to be intermittent but it's occuring only when I place images from Bridge to an InDesign document.
    I've experienced this bug before with InDesign but now it seems to happen more often when I drag an image from Bridge to an InDesign doc.
    After doing this I'm unable to Save the document or undo/redo anything. I know others have experienced this same bug. The only way I was able to fix the document was to close InDesign (and lose any unsaved changes) and then reopen the document. Then I create a new document and move all of the pages of my document to the new doc and resave it. This seems to stop the problem from happening.
    This is a serious bug: a) It's hard to pin down what causes it but it seems to be permission related to the document b) there is NO way to recover your unsaved changes, you can't copy your objects to a new document and save it as once the program breaks you can't save ANYTHING.
    Has anyone had success permanantly fixing this? Or run into it at all?

    Windows or MacOS?
    Because in Windows you can circumvent this by using the Explorer. I used to drag 'n drop images (ID CS6) and other files all the time - nothing like your problem so far.

  • Line break in photoshop image

    I had a tif file of a mountain climber which was placed in an Indesign file as a cover for a brochure. The indesign file went through a number of text edits during the course of August through November.  Towards the last month of November a line gap appeared in the cover on the tif file. When I opened the tif file the gap appeared across the top quarter of the image. Why did this happen? Unfortunately I did not catch this and my client had to reprint the cover images at the press. My OS system is Maverick and I was using an older photoshop, CS5.

    No the original image does not have the line break. See below.
    I duplicated the image below for the current project and the line break occurred midway through the project. It seems that the image somehow got corrupted but I did not open it up in photoshop at all.
    Here is a link to download  : https://docs.functionfox.com/t/?d=GQ3NNUhLUnwGBpe2DHs_1Dkd2xYNTQzOTQ3MDA0MTM

Maybe you are looking for