Can You Support Me About Images Windows Application?

Hello,
I am doing a project about contact. I want show images avatar of user? But I cannot show images format "C:\Users\USERNAME\Pictures\images.jpg"
I have tried:
BitmapImage bim = new BitmapImage(new Uri(@"C:\Users\USERNAME\Pictures\images.jpg"));
ImgAvatar.Source = bim;
But It isn't activity. Can you support I show images like it. or auto copy images this link to Assets in Project?
Thanks you so much !

use one of them
1
var imageBytes = File.ReadAllBytes("bitmap.bmp");
var image = imageBytes.ToImage();
image.Save("output.bmp");
2
 from some file:
Image.Save(@"FilePath", ImageFormat.Jpeg);
3.
Image bitmap = Image.FromFile("C:\\MyFile.bmp");
bitmap.Save("C:\\MyFile2.bmp");  
4 from pictureBox:
pictureBox1.Image.Save(@"path + imageName",ImageFormat.Jpeg);
5
byte[] img = Convert.FromBase64String(s);
System.IO.File.WriteAllBytes(@"C:\image.bmp", img);

Similar Messages

  • Can you remove some of the Default applications

    I want to give an iPod Touch to my mother who is technically challenged and doesn't have WiFi.
    I only want the iPod functionality, not the browsers, email, maps, or any other feature.
    Is there a way to disable or remove default apps that you don't want?
    ps: I do not want an iPod classic., it''s interface is harder to learn than the touch.

    I too would like to remove some of the default apps. Personally, I find the YouTube, Stocks, and Maps, useless to me and its just a waste of icon space. And whats with the "The touch may not be for you". Seriously, if someone wants a touch but doesn't want some of the default apps, that doesn't mean the touch is not for someone. I think it would be a smart move for Apple to revise the iPod (and iPhone, if people can't remove default apps on there) so that we may remove the default apps that we don't use. It makes absolutely no sense to just "move" the app to the back if we don't even use the app. That's like saying "you may not have any use for this app, but its here because we want to force you to keep the junk we give you". And it sounds a lot like a Microsoft move for the all the Windows operating systems they have released (up to Vista, so far) forcing Internet Explorer on all its users and not allowing us to remove it because it was integrated into the Operating System. Supposedly, Microsoft is growing up and letting the user to actually disable (maybe even remove) Internet Explorer in the upcoming Windows 7. What about Mac OS X, does it force Safari on its users, like its forcing some of these unnecessary apps onto the iPod Touch? I wouldn't don't know, I don't earn quite enough money to buy myself an iMac or MacBook (and I've even heard from several people that its more expensive to get a gaming Mac than a gaming PC with similar hardware configuration). Only Apple product I own so far is an iPod Touch.
    But I will give Anna credit. Anna at least answered the question.
    The question was "Can you remove some of the default applications" and a response saying "What is your mother going to use it for? Maybe the Touch is not the right device for her." by "D'Fish'N'Seas" does not answer the question at all. The question has nothing to do with what the mother is going to use the iPod for, so don't post a response like that, its one of the reasons that causes short tempered people to flame other people.
    Ok, so since Anna answered the question that Ron asked. I have a question related to this topic, and if Ron is still wanting to remove some default apps, I'm sure he would like an answer to the question too. So, here is my question: Has anyone developed an app that would allow us to remove the default apps, or a tool that will guide us in removing some default apps?
    And preferably the app or tool be in the most legal possible way. Wouldn't want to ask for something that is illegal.

  • Can you help me to retrieve my applications. In iTunes I accidentally clicked the Restore button in the Summary screen. It restored the original settings and I lost all my applications and don't know if it is possible to retrieve them.

    Can you help me to retrieve my applications. In iTunes I accidentally clicked the Restore button in the Summary screen. It restored the original settings and I lost all my applications and don't know if it is possible to retrieve them.

    All apps on an iPhone, iPad, or iPod Touch should be in your iTunes library on your computer.
    You can re-download all 3rd party apps and you won't be charged again for a purchased app as long as you use the same iTunes account to re-download the apps that was used to purchase the app originally.
    http://support.apple.com/kb/HT2519
    Do this with iTunes on your computer. After you have re-downloaded every app one by one, select Sync Apps under the Apps tab for the device's sync preferences along with selecting the apps below that you want transferred to the device followed by a sync to re-install the apps on the device.

  • How can you get a mirror image of a photo on iPhoto?

    How can you get a mirror image of a photo on iPhoto?

    By using an external editor. Preview is already on your Mac. It's called 'Flip Horizontal'
    In order of price here are some other suggestions:
    Seashore (free)
    The Gimp (free)
    Graphic Coverter ($45 approx)
    Acorn ($50 approx)
    Pixelmator ($50 approx)
    Photoshop Elements ($75 approx)
    There are many, many other options. Search on MacUpdate or the App Store.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.

  • HT4796 Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Can you transfer files from a window based back up hard Drive to a mac ?, example word files , iTunes, picture files thanks

    Shermanbva,
    Here's an article that details the various ways you can get Windows files onto a Mac:
    Switch Basics: Migrate your Windows files or system to your Mac
    http://support.apple.com/kb/HT2518
    Have a good one,
    - Ari

  • Pls can anyone tell me about the macKeeper application? is it safe and is it recommended by apple?

    pls can anyone tell me about the macKeeper application? is it safe and is it recommended by apple?

    1. It’s something you don’t need or want.
    2. No to both questions.
    (117054)

  • Can you tell me about the iphone which imei is 35**********976. That is locked or unlocked iphone?

    Can you tell me about the iphone which imei is 35**********976. That is locked or unlocked iphone?
    <Personal Information Edited by Host>

    This is a user-to-user support forum. We can't tell you anything. However, if you call AppleCare, they should be able to tell you. See the Contact Us link at the bottom right of every page.

  • HT1353 can you help me how to install applications on my ipod ma623c

    can you help me how to install applications on my ipod ma623c

    You have the origina, 1G iPod. those can m;y go as high as iOS 3.1.3
    Connect the iPod to your computer and update via iTunes as far as your iPod model allows
    iOS: How to update your iPhone, iPad, or iPod touch
    A 1G iPod can go to iOS 2.2 via iTunes and iOS 3.1.3 via
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)       
      https://buy.itunes.apple.com/WebObjects/MZFinance.woa/wa/touchLegacyLandingPage
    However, there are not that many apps compatible with 3.1.3. To find those more easily:
    iOSSearch - search the iTunes store for compatible apps.
    Vintapps 3.1.3 - paid app.
    Apple Club - filter apps by iOS version.

  • Can you change the default image capture program in RH8?

    Can you change the default image capture program in RH8? I have used Snagit for sooo many years and I would like to use it by clicking the Caputre button.  I know how to change it to edit pictures with Snagit (Tools > Options > Associations), but not to capture.

    Looks like a feature request.
    Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • I received a message about having too many contacts?  Not sure what this means, didn't know there limitations on contacts.  Can you tell me about fixing this problem?

    I received a message about having too many contacts?  Not sure what this means, didn't know there limitations on contacts.  Can you tell me about fixing this problem?

    What were you doing when you received the message?
    I have seen reports on these forums where there is a limit to how many contacts you can have in the "to" field of a text message. That is the only thing I can think of where someone has reported getting a warning about too many contacts.

  • I can't active ipad serial V5********etu. can you support for me?

    Dear all
    I have one Ipad. The serial is V5******etu. It's can not run and I bring it to the shop. after They make it run, it need active but I used wifi or itune but It can't active. I don't know why. Can you support for me and fix it. Thanks all
    Have a nice day
    <Personal Information Edited by Host>

    Dear all
    I have one Ipad. The serial is V5******etu. It's can not run and I bring it to the shop. after They make it run, it need active but I used wifi or itune but It can't active. I don't know why. Can you support for me and fix it. Thanks all
    Have a nice day
    <Personal Information Edited by Host>

  • There is an locked iphone,I can't get its info.Its serial number is 70******A4S.Can you tell me about info of this iphone, and if I want to unlock it,how I do.Thanks.

    There is an locked iphone,I can't get its info.Its serial number is 70******A4S.Can you tell me about info of this iphone, and if I want to unlock it,how I do.Thanks.
    <Edited by Host>

    I don't know the meaning about the info of the picture above.Do you know what is the meaning? Thanks.

  • How  can you load local server urls on application start?

    Background:
    I've been searching for close to two days for an answer to this question, it's full of gotchas and I can't quite get it figured out.
    I have an application which contains several web services. These services load up listeners when the services are invoked which makes them available for input. The user has the option of disabling automatic load of these services and invoking them manually by typing in the local url and starting the app. The can allow the autoload which uses a the or allowing the auto load to start. Currently the local url is hardcoded in a property file and this is how the services knows the local endpoint to envoke when it autostarts.
    <servlet id="AutoStart_01">
    <servlet-name>autoStart</servlet-name>
    <servlet-class>com.loadmy.StartupClass.Here</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    This works all fine and well until it's deployed onto a machine that runs a local weblogic cluster that has more than one jvm (and multiple ports) loading the application up.
    Problem
    The question is, how can you get the applicaton to recoginize the local url for the jvm that is running which can be on different ports? Here's what I've tried
    A - Using Inet.Address - This doesn't let you know what port your application is on
    B - Using the load servlet on start up ( Only the init() function is called and the request object hasn't been created and the request object is what contains ther protocol, server and port information)
    C - Loading a jsp page (READ... purposefully loading a jsp page) on application start. The thought here is that this contains a request object, but unfortunately on this doesn't work in my servlet container (currently tomcat 6 but the application is for a web logic machine)
    D - I thought about possibly using System.properties() but no luck there
    I'm at witts end on this one and I know there is something that can recoginze the local servlet container and extract the url and port from it.
    Any suggestions would be great.
    Flabergasted [sic]

    Hi,
    I had a simmilar requirement once, i also had to display some meaningful message with the busy mode icon, but i guess that comes directly from the WD Framework and is not possible to be changed. Refer the following thread, i raised that time.
    Web Dynpro ABAP
    Dont have much idea if somethig exists in portal for this.
    Regards,
    Runal

  • Watching youtube cause storage running out of space on android, can you do sth. about it?

    I believe because of sandbox on android, the internal storage of the phone is running out of space. I tried to put firefox on sdcard, but it does not solve the issue of flash video caching. It is still collected on the main storage, which typically is very limited. Eventually I have to clear private data after viewing few longer videos, can you solve this? e.g. by putting cache of flash videos to sdcard?

    Please make sure Flash plug-in in Firefox is doing the playback (so the issue is for Mozilla and Adobe) and not the Youtube app, I mean, there is always the option to load the video in Flash player or Youtube default app.
    AFAIK, YouTube Android app does not store cache in internal memory if a SD card is available, because I have a Android phone with few internal memory but it works. So try to play the video from YouTube app. Despite I hardly ever play videos from Firefox Android and don't have the phone to try now, I think you can choose between playing the video from Firefox or from Youtube app. To do so, please, restore all defaults (Go to System Settings > Applications > Manage Applications and choose to restore default associations in Youtube, Firefox and Flash Player apps) then try to play the video again.
    If you still want Firefox developers to do something over this, please remember the people who answer questions here, for the most part, are other Firefox users volunteering their time (like me), not Mozilla employees or Firefox developers.
    If you want to leave feedback for Firefox developers, you can go to the Firefox ''Help'' menu and select ''Submit Feedback...'' or use [https://input.mozilla.org/feedback this link]. (You'll need to be on the latest version of Firefox to submit feedback). Your feedback gets collected at http://input.mozilla.org/, where a team of people read it and gather data about the most common issues.

  • Can You Help Me ABout getSelectedRow in JTable

    Can you help me on how to solve my problem about the getSelectedRow .....
    I have one JComboBox and a SearchButton
    ... Once I selected an Item in a JComboBox, I will press the SearchButton
    and then it will look up to the database and display it in the JTable..........
    i used the getSelectedRow to print the value that I selected in the table...
    like this...
    public void mouseClicked(MouseEvent e) {
    // Ilabas yung form
    if(e.getClickCount() == 1 ) {
    System.out.println(table1.getSelectedRow());
    In the first press in the SearchButton and then clicking the row
    , It will print the selected row...... but when i press again the SearchButton then clicking a row again........
    there is a problem occured....... selectedRow is always -1, can you help me to solve this.....

    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.plaf.metal.*;
    import javax.swing.border.*;
    import javax.swing.table.*;
    import java.text.*;
    import java.beans.*;
    public class OpenProject extends JDialog {
         ResultSet rs, rs1, rs2, rs3;
         JFrame JFParentFrame; // create a JFrame
         JFrame OwnerFrame; // create a JFrame
         public JLabel proj_name;
         public JLabel proj = new JLabel("Project Name:");
         public JLabel form = new JLabel("Form Name");
         public JLabel lang = new JLabel("Language");
         public JComboBox form_lang = new JComboBox();
         public JComboBox form_name = new JComboBox();
         public JButton edit = new JButton("Edit");
         public JButton reload = new JButton("Search");
         public JButton def = new JButton("Set Text Default");
         public JButton langs = new JButton("Add Language");
         public JButton exit = new JButton("Exit");
         public JPanel panel1 = new JPanel ();
         public JTable table1, table2, table3,table4;
         public JScrollPane scrollPane1, scrollPane2, scrollPane3, scrollPane4;
         public JTabbedPane UITab,UITab1;
         Container c = getContentPane();
         Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
         public String column[][];
         public String strRow;
         public String strCol;
         public String strForm;
         public String strGetProj_id;
         public String strForm_lang;
         public String strForm_name;
         private boolean DEBUG = false;
         public int getLang;
         public int getForm;
         public int getDef_id;
         public int count2 = 0,count3 = 0,count4 = 0;
         public int row2 = 0,row3 = 0,row4 = 0;
         public int selectedRow1 = 0, selectedRow2 = 0;
         public DbBean db = new DbBean();
         public OpenProject(JFrame OwnerForm, String getProj_id) {
              super(OwnerForm,true);
                   strGetProj_id = getProj_id;
              try{
                   db.connect();
              } catch(SQLException sqlex) {
              } catch(ClassNotFoundException cnfex) {
              try {
                   UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
              } catch(Exception e) {
              // Para ito sa paglalagay sa dalawang combo box ng value.......
              try {
                   rs = db.execSQL("Select * from mst_form where form_proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        form_name.addItem(rs.getString("form_name"));
                        //System.out.println(strForm);
              } catch(SQLException sqlex) {
              try {
                   rs = db.execSQL("Select distinct from mst_form where form_proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        form_name.addItem(rs.getString("form_name"));
                        //System.out.println(strForm);
              } catch(SQLException sqlex) {
              try {
                   int counts;
                   rs = db.execSQL("Select * from mst_project where proj_id = "+strGetProj_id+"");
                   while(rs.next()) {
                        counts = rs.getInt("proj_lang_id");
                        System.out.println(counts);
                        rs1 = db.execSQL("Select * from mst_language where lang_id = "+counts+"");
                        while (rs1.next()) {
                             form_lang.addItem(rs1.getString("lang_name"));     
              } catch(SQLException sqlex) {
              edit.setActionCommand("edit");
              edit.addActionListener(actions);
              reload.setActionCommand("load");
              reload.addActionListener(actions);
              def.setActionCommand("default");
              def.addActionListener(actions);
              langs.setActionCommand("lang");
              langs.addActionListener(actions);
              exit.setActionCommand("exit");
              exit.addActionListener(actions);
              proj_name = new JLabel();     
              proj_name.setBackground(new Color(255,255,255));
              form_name.setMaximumRowCount(5);
              form_name.setBackground(new Color(255,255,255));
              form_lang.setMaximumRowCount(5);
              form_lang.setBackground(new Color(255,255,255));
              proj.setBounds(20, 20,100,20);
              proj_name.setBounds(120, 20,250,20);
              form.setBounds(20, 50,100,20);
              form_name.setBounds(120, 50,150,20);
              lang.setBounds(300, 50,100,20);     
              form_lang.setBounds(380, 50,150,20);
              reload.setBounds(560,50,80, 20);
              edit.setBounds(110,360,115,20);
              def.setBounds(230,360,115,20);
              langs.setBounds(350,360,115,20);
              exit.setBounds(470,360,115,20);
              panel1.add(getTable());
              panel1.setLayout(null);     
              panel1.setBackground(Color.white);     
              panel1.add(proj);
              panel1.add(proj_name);
              panel1.add(form);
              panel1.add(form_name);
              panel1.add(lang);
              panel1.add(form_lang);
              panel1.add(reload);     
              panel1.add(def);
              panel1.add(langs);
              panel1.add(exit);
              panel1.add(edit);
              c.add(panel1);
              setSize(680,420);
              setTitle("Open Project");
              setLocation((screen.width - 590)/2,((screen.height - 280)/2) - 45);
         public JTabbedPane getTable() {
              UITab = new JTabbedPane();
              strForm_lang = form_lang.getSelectedItem().toString();
              strForm_name = form_name.getSelectedItem().toString();
              int count1=0;
              int row1=0;
              try {
                   rs = db.execSQL("Select * from mst_default where def_proj_id = '"+strGetProj_id+"' AND def_category = 'Title'" );
                   while(rs.next()) {
                        count1 += 1;
                        getDef_id = rs.getInt("def_id");
                   column = new String[count1][2];
                   rs1 = db.execSQL("Select form_id from mst_form WHERE form_name = '"+strForm_name+"'");
                   while(rs1.next()) {
                        getForm = rs1.getInt("form_id");
                        System.out.println("getForm");
                   rs2 = db.execSQL("Select lang_id from mst_language WHERE lang_name = '"+strForm_lang+"'");
                   while(rs2.next()) {
                        getLang = rs2.getInt("lang_id");
                        System.out.println("getLang");
                   rs3 = db.execSQL("Select * from mst_default a, mst_translation b WHERE a.def_form_id = '"+getForm+"' AND b.trans_lang_id = '"+getLang+"' AND a.def_proj_id = '"+strGetProj_id+"' AND b.trans_def_id = '"+getDef_id+"' AND a.def_category = 'Title' " );
                   while(rs3.next()) {
                        column[row1][0] = "" + rs3.getString("display_name");          // rowNum ay kung ilan ang row na ilalabas
                   column[row1][1] = "" + rs3.getString("translation"); // Default yung isang array ng column ko, kaya fixed
                        row1++;
                   row1 = 0;
              } catch(SQLException sqlex) {
                   sqlex.printStackTrace();
                   System.exit(1);
              // End
              table1 = new JTable(new MyTableModel()){
              scrollPane1 = new JScrollPane(table1);
              UITab.setBounds(30,100,610,250);
              UITab.add("Title",scrollPane1);
              return UITab;
         class MyTableModel extends AbstractTableModel {     
                   // Pagawa ng header Coloumn
                   String ColumnHeaderName[] = {
                        "Default Text",""+strForm_lang+" Translation"
                   //End
                   public int getColumnCount() {     
                        //System.out.println("The Column Count is" + ColumnHeaderName.length);
         return ColumnHeaderName.length;
         public int getRowCount() {
              //System.out.println("The Row Count is" + column.length);
         return column.length;
         public String getColumnName(int col) {
                        //System.out.println("The Column Name is" + ColumnHeaderName[col]);     
         return ColumnHeaderName[col];
         public Object getValueAt(int row,int col) {
              System.out.println("The value at row and column = " + column[row][col]);
         return column[row][col];
         public int getSelectedRow() {
              System.out.println("Integer" + column.length);
              return column.length;
         ActionListener actions = new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   String source = ae.getActionCommand();
                   if (source == "load") {
                        table1.clearSelection();
                        panel1.add(getTable());
                        table1.addNotify();
                        repaint();
                   } else if (source == "default") {
                        dispose();
                        TextDefaultForm form = new TextDefaultForm(OwnerFrame,JFParentFrame);
                        form.setVisible(true);
                   } else if (source == "lang") {
                        dispose();
                        CreateProject lang = new CreateProject(JFParentFrame);
                        lang.setVisible(true);
                   } else if (source == "exit") {
                        dispose();
                   } else if (source == "edit") {
                        if (table1.getValueAt(table1.getSelectedRow(),table1.getSelectedColumn()) != null){
                             formLang lang = new formLang(OwnerFrame,strCol,strRow, strGetProj_id);
                             lang.setVisible(true);
         MouseListener MouseTableListener = new MouseListener() {
                   public void mouseClicked(MouseEvent e) {
                        // Ilabas yung form
                        if(e.getClickCount() == 2 ) {
                             dispose();
                             int col_a = 0;
                             int col_b = 1;
                             selectedRow1 = table1.getSelectedRow();     
                             Object objColumn1 = table1.getValueAt(selectedRow1, col_a);
                             Object objRow1 = table1.getValueAt(selectedRow1, col_b);
                             strCol = objColumn1.toString();
                             strRow = objRow1.toString();
                             formLang lang = new formLang(OwnerFrame,strCol,strRow,strGetProj_id);
                             System.out.println(selectedRow1);
                             System.out.println(strCol);
                             System.out.println(strRow);
                             lang.txtProj.setText(strCol);
                             lang.txtLang.setText(strRow);
                             lang.show();
                        } else if (e.getClickCount() == 1) {
                             table1.setSelectionBackground(Color.blue);
                             table1.setColumnSelectionAllowed(false);
                        table1.setRowSelectionAllowed(true);
                        table1.setFocusable(true);
                             int a = table1.getRowCount();
                             System.out.println("Row Count = " + a);
                             int sel = table1.getSelectedRow();     
                             //if (sel == -1) return;
                             System.out.println("Selected Row = " + sel);
                             System.out.println(table1.isRowSelected(sel));
                   public void mouseReleased(MouseEvent e) {
                   public void mouseExited(MouseEvent e) {
                   public void mouseEntered(MouseEvent e) {
                   public void mousePressed(MouseEvent e) {
         //public static void main(String leo[]) {
              //OpenProject open = new OpenProject();
    }

Maybe you are looking for

  • OSX Yosemite USB Microphone Static Sounds when talking.

    Same thing as the title recently upgraded from late 2008 iMac using Mountain Lion to a late 2013 iMac using Yosemite and now when I plug in my USB headset into one of the 4 USB slots the microphone is robotic and static noises appear. When I plug the

  • Available disk space just changed from 3.5 GB to only 360 MB - help!!

    Hi folks, I was watching some streaming DivX videos online, and now for some reason my available hard drive space changed from over 3.5 GB to only about 350 MB! I've cleared my browser cache, and run various onyx cleaning functions, and rebooted 3 ti

  • Error when forcing checkCacheoOnly

    This is a routine we are using to create a named query: public ObjectLevelReadQuery getResponsibleRolesForRegion() ReadAllQuery lQuery = new ReadAllQuery(); ExpressionBuilder lBuilder1 = new ExpressionBuilder(); ExpressionBuilder lBuilder2 = new Expr

  • Opening quicktime movie

    Whenever, I click on "Listen Live" at dpr.org (Dayton Public Radio), I get this error message. "Error opening movie: Movie could not be opened" My Quicktime works at other sites. I have tried everything that I know, to no avail.

  • Bluetooth keyboard pairing issues

    HI, recently my wireless keyboard got disconnected to my IMac and now I can't pair it. I have read various posts on the subject and tried many remedies including battery change, holding power button whilst entering code multiple times, removing com.a