How to get the external Bitmap of URL object

Hi all!

I'm a developer starting with components of BlackBerry, I try to get a Bitmap of the outer object
URL, but my getImage method does not work correctly. I think that the problem lies in the getImage method. just at the moment where I try to
create form of Bitmap bytes. Note: J2me with the Image object, that it works!

could someone help me please?

Sorry for my bad English & thank you for helping me!

Code:

SerializableAttribute public class MainForm extends form {}

private String url = "http://user-xxxx/json.js";
private String [] imageURLs = new String [5];

public MainForm() {}

try {}
getJSON (url);
} catch (IOException e) {}
e.printStackTrace ();
}

try {}
Add (GetImage(this.imageURLs[0]));
} catch (Exception e) {}
e.printStackTrace ();
}
}

Public Sub getJSON (String url) throws IOException {}
StringBuffer sb = new StringBuffer();
InputStream is = null;
HttpConnection hc = null;
try {}
long bytesLength = 0;
int ch = 0;
HC = (HttpConnection), Connector.open (url);
is = hc.openInputStream ();
bytesLength = hc.getLength ();
If (bytesLength! = - 1) {}
for (int i = 0; i)< byteslength;="" i++)="">
If ((ch = is.read (())! = - 1) {}
SB. Append ((Char) ch);
}
}
} else {}
While ((ch = is.read (())! = - 1) {}
bytesLength = is.available ();
SB. Append ((Char) ch);
}
}
parseJSON (sb.toString ());
} {Finally
is. Close();
HC. Close();
}
}

{} public void parseJSON (String sb)
try {}
JSONObject jo = new JSONObject (sb);
If (jo! = null) {}
JSONObject channel = jo.getJSONObject ("channel");
If (channel! = null) {}
JSONArray points = channel.getJSONArray("item");
If (items! = null) {}
for (int i = 0; i)< items.length();="" i++)="">
JSONObject point = items.getJSONObject (i);
this.imageURLs [i] = item.getString ("image");
}
}
}
}
} catch (Exception e) {}
e.printStackTrace ();
}
}

I think that the problem lies in this method.

public BitmapField getImage (String url) throws Exception {}
InputStream inputStream = Connector.openInputStream (url) (InputStream);
Bitmap image = null;
BitmapField bf = null;
try {}
ByteArrayOutputStream Baos = new ByteArrayOutputStream();
int ch;
While ((ch = inputStream.read ())! = - 1) {}
Baos.Write (ch);
}
Byte [] imageData = baos.toByteArray ();
Image = Bitmap.createBitmapFromBytes (imageData, 0, imageData.length, 1);
BF = new BitmapField (image);
} {Finally
If (inputStream! = null)
inputStream.close ();
}
return (bf == null? null: bf);
}

public String [] getImageURLs() {}
Return this.imageURLs;
}

}

Finally my fatal mistake was in archive JSON, I change the URL of the images of http://localhost/image.jpg to
http://user-xxx/image.jpg (MDS - CS available in http://localhost URL: 8080 /), and now it works!

Ted and arkadyz, your suggestions have been very helpful for me, thank you very much!

Final code:

Class MainMIDlet

Import net.rim.device.api.ui.UiApplication;

SerializableAttribute public class MainMIDlet extends UiApplication {}

public MainMIDlet() {}
MainForm mf = new MainForm();
pushScreen (mf);
}

Public Shared Sub main (String [] args) {}
MainMIDlet mm = new MainMIDlet();
mm.enterEventDispatcher ();
}
}

Class MainForm

import java.io.ByteArrayOutputStream.
import java.io.IOException;
import java.io.InputStream;

Import javax.microedition.io.Connector;
Import javax.microedition.io.HttpConnection;

Import org.json.me.JSONArray;
Import org.json.me.JSONObject;

Import net.rim.device.api.system.EncodedImage;
Import net.rim.device.api.ui.component.BitmapField;
Import net.rim.device.api.ui.component.LabelField;
Import net.rim.device.api.ui.container.MainScreen;

SerializableAttribute public class MainForm extends form {}

private String url = "http://user-xxx/json.js";
private String [] jsonTitles = new String [5];
private String [] jsonImages = new String [5];
private LabelField lf = null;
private BitmapField bf = null;

public MainForm() {}

try {}
getJSON (url);
} catch (IOException e) {}
e.printStackTrace ();
}

LF = getLabelField(this.jsonTitles[0]);
Add (LF);

try {}
BF = getBitmapField(this.jsonImages[0]);
} catch (Exception e) {}
e.printStackTrace ();
}
Add (BF);

}

Public Sub getJSON (String url) throws IOException {}
StringBuffer sb = new StringBuffer();
InputStream is = null;
HttpConnection hc = null;
try {}
long bytesLength = 0;
int ch = 0;
HC = (HttpConnection), Connector.open (url);
is = hc.openInputStream ();
bytesLength = hc.getLength ();
If (bytesLength! = - 1) {}
for (int i = 0; i)< byteslength;="" i++)="">
If ((ch = is.read (())! = - 1) {}
SB. Append ((Char) ch);
}
}
} else {}
While ((ch = is.read (())! = - 1) {}
bytesLength = is.available ();
SB. Append ((Char) ch);
}
}
parseJSON (sb.toString ());
} {Finally
is. Close();
HC. Close();
}
}

{} public void parseJSON (String sb)
try {}
JSONObject jo = new JSONObject (sb);
If (jo! = null) {}
JSONObject channel = jo.getJSONObject ("channel");
If (channel! = null) {}
JSONArray points = channel.getJSONArray("item");
If (items! = null) {}
for (int i = 0; i)< items.length();="" i++)="">
JSONObject point = items.getJSONObject (i);
this.jsonTitles [i] = item.getString ("title");
this.jsonImages [i] = item.getString ("image");
}
}
}
}
} catch (Exception e) {}
e.printStackTrace ();
}
}

public getLabelField (String title) {} LabelField
LabelField lf = new LabelField (title);
return of lf;
}

public BitmapField getBitmapField (String url) throws IOException {}
InputStream is = Connector.openInputStream (url) (InputStream);
BitmapField bf = null;
try {}
ByteArrayOutputStream Baos = new ByteArrayOutputStream();
int ch;
While ((ch = is.read (())! = - 1) {}
Baos.Write (ch);
}
imageData Byte = baos.toByteArray ();
BF = new BitmapField (EncodedImage.createEncodedImage (imageData, 0,))
(imageData.length) .getBitmap ());
} {Finally
If (is! = null) {}
is. Close();
}
}
return (bf == null? null: bf);
}

}

Tags: BlackBerry Developers

Similar Questions

  • How to get the external hard drive to connect to VMWare Player?

    Hi all

    I currently have VMWare Player 3.1.4 and that you have a VM installed on an external SSD that works very well.

    The guest operating system is XP and host operating system is OpenSuSE 11.4.

    The problem is that I have another external hard drive that I want to connect to the virtual machine to store files and other (WD Scorpio Black 320 GB).

    So what I tried was when I opend VMWare Player, I went to add a new SCSI device, found the hard drive, I wanted to use and created it. But when I go in-> "VM" > "Removable devices" > "generic SCSI (SCSI 0:1) ' > 'Connect'-> I get the below error message.

    Device virtual scsi0:1: could not open the device host "/ dev/sdc": not sufficient permissions to access the file. Please make sure that the virtual device is configured to use a Linux generic SCSI device (/ dev/sg *), and that the physical device works normally on the host computer.
    Cannot connect the device virtual scsi0:1.

    Does anyone know if I'm doing something wrong? What are the permissions are they talking about?

    Thanks in advance,

    Matt

    Are back at the office and tested on a variety of Linux Ubuntu and was able to add a second drive HARD/dev/sdb as a physical and even disc was also able to boot from it even if it needs to be dismantled first and I had to start VMware Player using sudo, because I was using a standard account both add the disk and run the virtual machine with the added disk.

  • How to get the Director bitmap files to become transparent PNG?

    I'm new to the whole thing from adobe, and I have files I want to convert bitmap files in a CSE in images with transparency. Thanks for the help!

    Found: Re: how to export several members of the cast at a time?

  • How to get the external file linking in as3

    I want to open files outside different format (*.mp4, *.wmv, *.pdf, * .ppt,.doc etc.) on the click event, I try that for *.wmv but I received an error.

    --------------------------------------------------------------------------------

    package {}

    to import flash.display.SimpleButton;

    import flash.events.MouseEvent;

    import flash.net.navigateToURL;

    import flash.net.URLRequest;

    public class button click extends SimpleButton {}

    public void clickbutton() {}

    this.addEventListener (MouseEvent.CLICK, clickF);

    }

    private void clickF(e:MouseEvent):void {}

    var nc:NetConnection = new NetConnection();

    NC. Connect (null);

    var ns:NetStream = new NetStream (nc);

    videoPlayer.attachNetStream (ns);

    var listener: Object = new Object();

    listener.onMetaData = function(evt:Object):void {};

    NS.client = listener;

    NS. Play ("video_test.wmv");

    }

    }

    }

    --------------------------------------------------------------------------------

    Please tell me the correct code

    you don't need the swf file.

    you create a projection file (.exe).

    If you know users will have default settings to open the types of files and programs, you can use fscommand to open them (as long as they files are located in a subdirectory of fscommand).

    you will need to use an executable support, too: http://www.northcode.com/blog.php/2007/08/07/Conquering-FSCommand-EXEC-Part-1-Proxy

  • How to get the data type of an object?

    I have some custom classes, and I would like to make conditional function that behaves differently depending on the data type of the object. How can I do this?

    you could do something like

    var obj:CustomObject = new CustomObject();

    If (obj is Objetpersonnalise)

    {

    do something

    }

    or you could look at using getQualifiedClassName() or getDefinitionByName()

  • How to get an external SWF to start playing only when the preloader is finished?

    Yet another dilemma with my external swf.
    How can I get the external SWF only start playing once the preloader has finished loading the entire file.
    Currently when the SWF file is it already started playing in progress through the file.
    Any suggestion would be appreciated... my code is fixed as follows:

    After a hunt more through discussion of other people, I think I have the solution (not sure if it is the best way, but it seems to work). My new code is detailed below, including:

    MovieClip (myloaderDB01.content) .play ();

    Then I had to change my external SWF by the first blank frame and put a stop();
    Now when the preloader does its job the external SWF plays until it is supposed to - YAY.
    Hope this helps others...
    Any other suggestions out there with regard to a better way to do this work would also be appreciated.

  • How to get the icons to display correctly in the Finder?

    At the time of the "classic" Mac OS, if the icons are not correctly display in the Finder, we could 'rebuild the desktop file' to correct the problem. I've recently updated to Yosemite, and most things work well, but for some reason, most of the files in the Finder .webloc now show as blank icons (but not all; a few show the correct icon). There is no model, I can see: some very old .webloc files now show a white icon (where I know that their icons used to be correct), while the most recent show the icon of correct - although I just created four (by dragging the URL of the Safari, the usual method) which are all empty. Sometimes they appear with the older icon, with the symbol @ (although those who seem to have changed vacuum after running and restart maintenance). I tried from an external disk, repair permissions and repair the file system, as well as cleaning with the utility of Maintenance (which clears the web browser and other caches), nothing works. Does anyone know how to get the computer to display these icons correctly?

    May be a corrupt .plist.

    Make a backup, preferably 2 backups on 2 separate drives.

    Go to Finder and select your user folder. With this Finder window as the windshield, select Finder/display/display options for presenting or order - J.  When the display options opens, check "show the library folder. This should make your visible user library folder in your user folder.  Select the library. Then go to Preferences/com.apple.finder.plist and com.apple.desktop.plist.  Move the .plists on your desktop.

    Relaunch the Finder by restarting the computer and test. If it works fine, delete the plists from the desktop.

    If the same, return the .plists to where you obtained since, by crushing the latest.

    Thanks to leonie for certain information contained in this.

  • How to get the element selected listfield and goto next page?

    Assalaamualikum

    I try parsing the XML from a url and show in listfield.

    problem:

    How to get the selected item and passing the variable and than goto next page?

    my code:

    package parsepack;

    import java.io.IOException;
    import java.io.InputStream;
    import java.util.Vector;

    Import javax.microedition.io.Connector;
    Import javax.microedition.io.StreamConnection;

    Import net.rim.device.api.system.Bitmap;
    Import net.rim.device.api.system.Display;
    Import net.rim.device.api.ui.DrawStyle;
    Import net.rim.device.api.ui.Field;
    Import net.rim.device.api.ui.FieldChangeListener;
    Import net.rim.device.api.ui.Graphics;
    Import net.rim.device.api.ui.Manager;
    Import net.rim.device.api.ui.UiApplication;
    Import net.rim.device.api.ui.component.ListField;
    Import net.rim.device.api.ui.component.ListFieldCallback;
    Import net.rim.device.api.ui.container.MainScreen;
    Import net.rim.device.api.ui.container.VerticalFieldManager;
    Import net.rim.device.api.xml.parsers.DocumentBuilder;
    Import net.rim.device.api.xml.parsers.DocumentBuilderFactory;

    to import org.W3C.DOM.document;
    Import org.w3c.dom.Node;
    Import org.w3c.dom.NodeList;

    extends xmlparsing public class UiApplication implements ListFieldCallback, FieldChangeListener
    {

    Public Shared Sub main (String [] args)
    {
    xmlparsing app = new xmlparsing();
    app.enterEventDispatcher ();
    }

    public long mycolor;
    Connection _connectionthread;
    private static ListField _list;
    private static Vector listElements is new Vector();.
    public display display = new MainScreen();
    MainManager VerticalFieldManager;
    VerticalFieldManager subManager;

    public xmlparsing()
    {
    Super();
    pushScreen (screen);

    final Bitmap Imagearriereplan = Bitmap.getBitmapResource ("blackbackground.png");

    mainManager = new VerticalFieldManager(Manager.NO_VERTICAL_SCROLL |) Manager.NO_VERTICAL_SCROLLBAR)
    {

    public void paint (Graphics graphics)
    {
    graphics.drawBitmap (0, 0, Display.getWidth (), Display.getHeight (), Imagearriereplan, 0, 0);

    Super.Paint (Graphics);
    }

    };

    subManager = new VerticalFieldManager(Manager.VERTICAL_SCROLL |) Manager.VERTICAL_SCROLLBAR)
    {
    protected void sublayout (int maxWidth, maxHeight int)
    {
    int displayWidth = Display.getWidth ();
    int displayHeight = Display.getHeight ();

    Super.sublayout (displayWidth, displayHeight);
    setExtent (displayWidth, displayHeight);
    }
    };

    Screen.Add (mainManager);

    _list = new ListField()

    {

    public void paint (Graphics graphics)

    {
    graphics.setColor ((int) mycolor);
    Super.Paint (Graphics);

    }

    };
    myColor = 0x00FFFFFF;
    _list. Invalidate();
    _list.setEmptyString ("* only supplies not available *", DrawStyle.HCENTER "");
    _list.setRowHeight (50);
    _list.setCallback (this);
    mainManager.add (subManager);
    listElements.removeAllElements ();
    _connectionthread = New Connection();
    _connectionthread. Start();
    }

    protected boolean navigationClick (int status, int time)
    {
    Try
    {
    Here, go to another screen if you need.

    }
    catch (System.Exception e)
    {
    System.out.println ("Exception:-: navigationClick()" + try ());
    }
    Returns true;
    }

    private class login extends thread
    {
    Public connection()
    {
    Super();
    }

    public void run() {}
    Doc document;
    StreamConnection conn = null;
    InputStream is = null;
    try {}

    Conn = Connector.open (StreamConnection) ("http://ec2-54-248-241-248.ap-northeast-1.compute.amazonaws.com/koperasi-akr-trial/cgi-bin/gw-pinjama...

    DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance ();
    docBuilderFactory.setIgnoringElementContentWhitespace (true);
    docBuilderFactory.setCoalescing (true);
    DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder ();
    docBuilder.isValidating ();
    is = conn.openInputStream ();
    doc = docBuilder.parse (is);
    doc.getDocumentElement () .normalize ();
    List of NodeList = doc.getElementsByTagName ("ID");
    for (int i = 0; i)< list.getlength();="" i++)="">
    Node node = list.item (i) .getFirstChild ();
    listElements.addElement (textNode.getNodeValue ());
    }
    } catch (Exception e) {}
    System.out.println (try ());
    } {Finally
    If (is! = null) {}
    try {is.close ();
    } catch (IOException ignored) {}
    } If (conn! = null) {}
    Try {conn.close () ;}
    catch (IOException ignored) {}
    }} UiApplication.getUiApplication () .invokeLater (new Runnable() {}
    public void run() {}
    _list. SetSize (listElements.Size ());
    subManager.add (_list);
    Screen.Invalidate ();
    }
    });
    }

    }

    ' public void drawListRow (list ListField, Graphics g, int index, int y, int w)
    {
    Your string = (String) listElements.elementAt (index);
    int yPos = 0 + y;
    g.drawLine (0, yPos, w, yPos);
    g.drawText (, 5, 15 + y, 0, w);
    }

    public {get {Object (ListField list, int index)
    {
    Return listElements.elementAt (index);
    }
    public int indexOfList (String prefix, ListField list, int, string)
    {
    Return listElements.indexOf (prefix, string);
    }
    public int getPreferredWidth (ListField list)
    {
    Return Display.getWidth ();
    }
    public final void insert (String toInsert, int index) {}
    listElements.addElement (toInsert);
    }

    ' Public Sub fieldChanged (field field, int context) {}

    }
    }

    Thank you.

    I told you that replace the navigationclick() method where initialize you your listfield

    as I think that changing your code and then answer me

    _list = new ListField()
    {
    protected boolean navigationClick(int status, int time)
    {
      Dialog.inform("hi");
      return true;
    }
    
    public void paint(Graphics graphics)
    {
    graphics.setColor((int) mycolor);
    super.paint(graphics);
    }
    };
    
  • How to get the podcast of the website on the phone

    I was told to put that feed into the PODCASTING app on your iOS device.

    The site in question is https://randirhodes.com/how-to-get-the-podcast/

    I paid for a premium podcast, now how o I get this podcast to appear on my iphone 6 s more in the podcast app?

    Podcasts > select my Podcasts > press the '+' > Add Podcast > paste the URL that you got on the site.

  • How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be.

    How to get the video intro off my google home screen I already saw it, where is the firefox logo used to be. I started with the last update that I rebooted.

    Hello
    to change the homepage when opening firefox-press 'Alt' and click on tools-> Options.

    Main menu, you can change the URL.

    If the problem persists, you can follow these simple steps:

    Enter about: config in the address bar and press ENTER. Accept the message of 'dragons' to see the Advanced preferences screen. Use the above search box to enter the below pref.

    You can assign an empty string to stop your Firefox to retrieve "extracts" and brandLogo changes the browser.aboutHomeSnippets.updateUrl pref. Right-click this pref and select Edit then clear the value as pref in the box that appears, and then click OK. Who will also disable "snippets" that appear under the container of the research on the default home page.

    Then you must open the folder of your profile, via help > Troubleshooting Information > profile folder > > button view folder. Then close Firefox. Your profile file open with Firefox closed (Firefox '3-bar' menu key > exit/Quit), wait or two minutes, then remove the storage\moz-safe-about + home folder in the Firefox profile folder to remove the brandLogo and stored in IndexedDB code snippets to make Firefox use the default brandLogo and a defined default code snippet.

    If you later change your mind about these changes, you can reset the pref browser.aboutHomeSnippets.updateUrl via the context menu and Reset allows to retrieve the default value using the storage\moz-chest-fort-about + home folder again.

  • How to get the mask of IP subnet by program

    Hi all

    for my application UI (contact control via an external library of LWIP system) would be very useful if the host network map is capable (that is correctly configured) to connect with the desired IP address.

    I have an idea to use GetAllTCPHostAddresses () function - and get host IP interfaces available. But how to get the IP subnet mask appropriate for each interface?

    Any advice will be appreciated!

    Thank you

    George

    Hi, Roberto,

    that all I wanted to thank you is a lot!

    Now I tested it and it is good work.

    See you soon,.

    George

  • How to get the Subvi (the virtual path is in .exe) reference in Run Time System

    Hello world

    The problem is how to get the reference of the Sub - VI in run time system, when the Subvi is in .exe after construction.

    More details:

    Top of page vi called the Subvi dynamically, so that the Subvi is always included, and the source object is the application.exe.

    After the above configuration, the Sub - VI will be the application.exe. For example, the path of Subvi est...\application.exe\SubVI.vi

    So, how to get the reference of the Subvi in Run Time System?

    I can't do it when you use 'open reference VI' with le...\application.exe\SubVI.vi path in the run time system.

    In fact, I can create a file to include the Subvi, rather than build the Subvi in application.exe, then I can get the convenintly reference. But this isn't my favourate average.

    Thank you

    chenyin

    That is the problem. Call a Subvi dynamic means users could change, but it is also very attractive.

    The dynamic call should be used in a user control, but some parade can avoid problems.

    It depends on why you use dynamic calls...-online 2 main ways:

    -Dynamic call are used to maintain a scalable framework for the code without acting on the executable file-online a single VI distribution managed by the administrator/developer

    -Dynamic call are used to provide a collection of "external" characteristic that could be enriched by the administrator/developer. For example, you provide your customers a set of selectable custom signal filters in the executable.

    In 2 cases, you are only able to assess the skills of the users to know if there is a risk of damage, if there is a change.

    So to stay only master a parade might be to provide dynamic VI without a schema, but with the problem of maintenance, since no in-place editing and more attention to manage distribution.

    Another way is to hide the actual distribution to user-online call dynamic VI but it without name as *.vi but others (a repellent name as system of OS name ) or simply without extension in order to attract not user... but that's debatable...

    Another more difficult but more secure method is to create a consistency check before your routine (version, user, modified date,...)

  • How to get the length of the (playbook) video?

    How to get the length of the video?

    I need a maximum value for use with mmr_seek() or mmrenderer_event_get_position().

    If you like in the file system on your PlayBook, you will see this:

    / pps/services/multimedia/converter/context.

    There should be a directory with the name of the conext you use with mmrender. Under this directory the file called metadata. For an mp3 player, I see this:

    [n]@metadata
    md_title_album::Sublime
    md_title_artist::Sublime
    md_title_bitrate::192000
    md_title_comment::
    md_title_duration::290812
    md_title_genre::Alternative
    md_title_mediatype::4
    md_title_name::Get Ready
    md_title_samplerate::44100
    md_title_track::14
    url::file:///accounts/1000/shared/music/Media Sync/Sublime/Sublime/Sublime - 1996 - Sublime - 14 - Get Ready.mp3
    

    You could write a simple parser to get the data you need.

  • How to get the time of the device

    Hello

    I'm developing an application in which I send location of the device in lat, long for every 10 minutes.  I want to send some time also with lat, long. This time must be peripheral situation updates for every 10 minutes.  Can someone tell me how do I do this?

    It is not obvious to your OP exactly what you ask.

    Ask you in a certain way a consistent recording time no matter what time zone are you in?

    Or are you just asking how to get the date and time?

    If it's the last QDateTime is one of the ways to get the date and time...

    http://developer.BlackBerry.com/native/reference/Cascades/QDateTime.html

    If you ask for the first answer more complex, you will probably need to check the time against an external clock (say GMT) and then re-reading use the contact information you have saved to determine what the weather was (including a calculation of DST) at this point in this particular time zone.

    Relying on the phone to change accurately that it is time that you move in time zones will not give accurate results.

  • Cisco ASA5520 facing ISP with private IP address. How to get the IPSec VPN through the internet?

    / * Style definitions * / table. MsoNormalTable {mso-style-name : « Table Normal » ; mso-tstyle-rowband-taille : 0 ; mso-tstyle-colband-taille : 0 ; mso-style-noshow:yes ; mso-style-priorité : 99 ; mso-style-qformat:yes ; mso-style-parent : » « ;" mso-rembourrage-alt : 0 à 5.4pt 0 à 5.4pt ; mso-para-marge-top : 0 ; mso-para-marge-droit : 0 ; mso-para-marge-bas : 10.0pt ; mso-para-marge-left : 0 ; ligne-hauteur : 115 % ; mso-pagination : widow-orphelin ; police-taille : 11.0pt ; famille de police : « Calibri », « sans-serif » ; mso-ascii-font-family : Calibri ; mso-ascii-theme-font : minor-latin ; mso-fareast-font-family : « Times New Roman » ; mso-fareast-theme-font : minor-fareast ; mso-hansi-font-family : Calibri ; mso-hansi-theme-font : minor-latin ;}

    Hello guys,.

    I have Cisco ASA5520 facing the ISP with private IP address. We don't have a router and how to get the IPSec VPN through the internet?

    The question statement not the interface pointing to ISP isn't IP address private and inside as well.

    Firewall configuration:

    Firewall outside interface Gi0 10.0.1.2 > ISP 10.0.1.1 with security-level 0

    Firewall inside the interface Ethernet0 192.168.1.1 > LAN switch 192.168.1.2 with security-level 100

    I have public IP block 199.9.9.1/28

    How can I use the public IP address to create the IPSec VPN tunnel between two sites across the internet?

    can I assign a public IP address on the Gig1 inside the interface with the security level of 100 and how to apply inside to carry on this interface?

    If I configure > firewall inside of the item in gi1 interface ip address 199.9.9.1/28 with security-level 100. How to make a safe lane VPN through this interface on the internet?

    I'm used to the public IP address allocation to the interface outside of the firewall and private inside the interface IP address.

    Please help with configuration examples and advise.

    Thank you

    Eric

    Unfortunately, you can only complete the VPN connection on the interface the VPN connection source, in your case the external interface.

    3 options:

    (1) connect a router in front of the ASA and assign your public ip address to the ASA outside interface.

    OR /.

    (2) If your ISP can perform static translation of 1 to 1, then you can always finish the VPN on the external interface and ask your provider what is the static ip address assigned to your ASA out of the IP (10.0.1.2) - this will launch the VPN of bidirectionally

    OR /.

    (3) If your ISP performs PAT (dynamic NAT), then you can only start the tunnel VPN on the side of the ASA and the other end of the tunnel must be configured to allow VPN LAN-to-LAN dynamics.

Maybe you are looking for

  • How can I remove Votre_fichier Downloader?

    I am sure that my son has downloaded something called Votre_fichier Downloader last month while playing games on the internet.  Since then, I get a popup at the beginning saying that Downloader Votre_fichier recommends an urgent update.  When I tried

  • Do I really need all the following versions or can I uninstall some of them?

    Microsoft Visual C++ 2005 ATL Update kb973923 - x 86 8.0.50727.4053Microsoft Visual C++ 2005 RedistributableMicrosoft Visual C++ 2008 ATL Update kb973924 - x 86 9.0.30729.4148Microsoft Visual C++ 2008 Redistributable-x 86 9.0.21022Microsoft Visual C+

  • large parts of missing pages

    I find that often pages not fully load. For example on my PC using Firefox this http://www.viralnova.com/rare-historical-photos/ page shows only the first three photos. Put this link in Internet Explorer shows all 45 as it also does in Chrome and Edg

  • Dell AIO 926 Printer model

    I uploaded my picture dell all in one printer 926 from the disk manufacturer and received a message that a driver is not signed. I could not find an update that will allow my printer to run from windows 7. Any suggestions?

  • Smartphones blackBerry "BOLD" BB &amp; Tom Tom 730

    Hi guys,. Just a little tip. I can get my BB to pair up with my Tom Tom no problem, BUT when I try to configure the wireless connection so that I can access my on-line service it won't connect. I'm on T-Mobile's network, I have my tom tom updated wit