6,113 Topics

Member Avatar for
Member Avatar for Victor_10

please how do i insert and retrieve image from sql db in asp.net mvc app and before inserting the image, the user can resize the image before inserting it.

0
104
Member Avatar for drgunjan

Hi, I had transferred a few thousand pics to my ipad from my PC. Now my PC , Crashed after that. Is there a way toget those old transferred pics back to my new PC. Have tried Dropbox and sync and iTunes etc. nothing works. These are all good only …

Member Avatar for Blancheo0
0
309
Member Avatar for vegaseat

The idea of this thread is to help the beginning Python programmer with hints and helpful code. Please feel free to contribute! If you have any questions start your own thread! The creators of Python are very active, improving the language all the time. Here is a little of the …

Member Avatar for vegaseat
23
34K
Member Avatar for rucel jhalia

Private Sub RetrieveButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RetrieveButton.Click conn = New MySqlConnection conn.ConnectionString = "server=127.0.0.1; Port=3306; user id=root; password=; database=bsit3d" Dim READER As MySqlDataReader Dim Command As New MySqlCommand conn.Open() Dim Query As String Query = "select * from bsit3d.form where username= '" & username.Text & …

Member Avatar for Mr.M
0
523
Member Avatar for kumarby1980

while (rd.Read()) <table style="width: 14%; position: relative; top: -182px; left: 630px; height: 117px;"> <tr> <td> <asp:Image ID="Image1" runat="server" Height="102px" Width="114px" visible="true"/> </td> </tr> </table> protected void Page_Load(object sender, EventArgs e) { Label1.Text=Request.QueryString["Parameter"].ToString(); OleDbConnection cn = new OleDbConnection("Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\\Users\\user\\Documents\\EmpDB.accdb"); OleDbCommand cmd = new OleDbCommand("select * from Emp where ID= @imgID ", …

0
102
Member Avatar for vijiglad

[CODE]<?php if(isset($_POST['upload']) && $_FILES['userfile']['size'] > 0) { $fileName = $_FILES['userfile']['name']; $tmpName = $_FILES['userfile']['tmp_name']; $fileSize = $_FILES['userfile']['size']; $fileType = $_FILES['userfile']['type']; $fp = fopen($tmpName, 'r'); $content = fread($fp, filesize($tmpName)); $content = addslashes($content); fclose($fp); if(!get_magic_quotes_gpc()) { $fileName = addslashes($fileName); } include 'config.php'; include 'opendb.php'; $query = "INSERT INTO upload (name, size, type, content …

Member Avatar for diafol
0
709
Member Avatar for vegaseat

After you got the basics of Python under your belt, the best way to get a good knowledge of the language and improve your coding skills is to start on a project you are interested in. Maybe an image viewer, a slide show, computer generated random or fractal art, a …

Member Avatar for vegaseat
20
18K
Member Avatar for Guy On

I'm uploading a file in laravel. The path is storing in database but unable to store image into destination folder. Here is my controller. public function post_contact() { $contact = new Contact; $contact->name = Input::get('name'); $contact->email = Input::get('email'); $contact->mobile = Input::get('mobile'); $contact->password = Input::get('password'); $contact->confirm = Input::get('confirm'); if($contact->save()) { $data …

Member Avatar for diafol
0
5K
Member Avatar for Nandomo

Is it possible to OCR an image using java? Any links to logic or examples or APIs would be appreciated.

Member Avatar for jwenting
0
103
Member Avatar for Marco_3

0ello I'm trying creating a triangular mesh from png. How can I extract the basic information from a image contour to create a mesh? I used opencv module in order to extract the contours . On xyContour variable I have essentially a path, but with a path I think that …

0
756
Member Avatar for tahoorasf_1
Member Avatar for <M/>
0
102
Member Avatar for shashigowda

what is the html code for **if we move our cursor on the image, the image name should appear**?? please help me urgent

Member Avatar for Dianne Watts
0
160
Member Avatar for Emma_4

Hi guys, I have a bit of code that displays an objects image, when you hover over it, it also shows the name of that object. What I would like, is when you hover over it for it to show the object Description instead, I am not sure what to …

Member Avatar for lps
0
170
Member Avatar for divyakrishnan

Hai Everyone.. Could someone please tell me that is there any jquery plugin to upload an image with editing functionality like resize,drag position as in shown Facebook profile picture upload?

Member Avatar for diafol
0
188
Member Avatar for batoolhussain
Member Avatar for rubberman
0
123
Member Avatar for William Hemsworth

Quite a while ago, I made [URL="http://www.daniweb.com/code/snippet217147.html"][B]this[/B][/URL] snippet. This code is basically the same, except that it adds animation. This method of blitting is very fast assuming you don't use a surface that's too large. On a 500 x 500 surface, I managed 350fps using only 0-1% of the cpu. …

Member Avatar for thetukiet
1
7K
Member Avatar for mutago

Good day experts, i want to upload image and forms input to database using apachae method but it returns an error display below [CODE] org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 36 in the jsp file: /jsp/cat1.jsp name cannot be resolved 33: String fvalue = …

Member Avatar for Mangesh_2
0
1K
Member Avatar for paul-lucas

Hello, my Wordpress is using now LayerSlider. However, for the image layer content (not image background slider), how I can apply the hover effect? ![layerslider.jpg](/attachments/large/4/845f4982662fae44826df3d378fa05c0.jpg "align-center") And, these are the code using now by LayerSlider: <a alt="" data-ls="offsetxin:0;delayin:3500;easingin:linear;fadein:false;offsetxout:0;easingout:linear;fadeout:false;" style="top: 400px; left: 141.5px; display: block; margin-left: 0px; margin-top: 0px; transform-origin: 50% …

0
121
Member Avatar for paul-lucas

Hello, my Wordpress is using now LayerSlider. However, for the image layer content (not image background slider), how I can apply the hover effect? ![layerslider.jpg](/attachments/large/4/c53bc9f8d746fd5eed5f8a334e27ce09.jpg "align-center") And, these are the code using now by LayerSlider: <a alt="" data-ls="offsetxin:0;delayin:3500;easingin:linear;fadein:false;offsetxout:0;easingout:linear;fadeout:false;" style="top: 400px; left: 141.5px; display: block; margin-left: 0px; margin-top: 0px; transform-origin: 50% …

0
148
Member Avatar for themathprof

I'm coding in VB6. I have pictures in Picture1 and Picture2. I would like to replace the picture in Picture1 with the picture in Picture2. What code will get this done? Thanks.

Member Avatar for Santanu.Das
0
2K
Member Avatar for skthree

Hi, I need to create a image editing tool in php. I'm begginer to the php. I tried it in 'javascript' but I need it to create it in php. my javascript code also didn't work(crop box is didn't work properly even it didn't move). I have no idea to …

Member Avatar for skthree
0
391
Member Avatar for sarahtodde

I have a background image on my homepage that is partially cut out whenever I use Google Chrome. Sometimes it's just a corner and sometimes half the top. I have the height set to the correct size. Looks fine in Safari and Firefox. Validates fine. Does anyone have any suggestions? …

Member Avatar for almostbob
0
444
Member Avatar for #1 zamy
Member Avatar for anand01
0
85
Member Avatar for joshl_1995

Hello Daniweb Community, I'm wanting to slice a square image into 9 pieces like below ![Image_Grid_Expected.png](/attachments/small/3/92037daf6101645e42f7718c3f4ccf65.png "align-center") the code I'm currently using is this Private Function CropBitmap(ByRef bmp As Bitmap, ByVal cropX As Integer, ByVal cropY As Integer, ByVal cropWidth As Integer, ByVal cropHeight As Integer) As Bitmap Dim rect …

Member Avatar for joshl_1995
0
1K
Member Avatar for Dankwansere

Hey guys, I've struggling to implement this solution for about a week now. We are using word templates that have inline shapes drawn inside. The inline shapes are used as a place holder to programatically insert image bar codes into the document. Previously we were using Ms.Interop.dll libraries to achieve …

0
118
Member Avatar for weekendrockstar

Hello once again! I have searched in vain for a solution to this issue however, any threads that I've seen online were regarding copying a specific state of a dynamic image and were unresolved...or were more like what I was looking for and it was unresolved. My current form uses …

Member Avatar for weekendrockstar
0
597
Member Avatar for batoolhussain

hi everyone. I have written a program that convert from color image to gray image in asp.net with visual basic, but I have a problem am new in asp.net and I want to display the gray image but I don't know how. please help me. this is a code. If …

Member Avatar for madCoder
0
247
Member Avatar for nimz143

i want to make an application, where user can upload their images and display it in Image control without physically saving it in a folder on disk. after done build the cone, an error show on this line. Dim base64String As String = Convert.ToBase64String(bytes, 0, bytes.Length) Error show on the …

Member Avatar for nimz143
0
350
Member Avatar for batoolhussain

hi everyone. I want to retrieve image from sql server database using asp.net with vb, but the image is not display and I don't know what is wrong with my code. please help me. Imports System.Data.SqlClient Imports System.IO Imports System.Drawing Public Class _Default Inherits System.Web.UI.Page Public sqlcon As SqlConnection = …

Member Avatar for G_Waddell
0
340
Member Avatar for adrian.mcguinness

Hi, I have several image tags overlapping using css and am able to use hover to make the one selected move to the top of he pile. #gallery img{ float: left; width: 250px; height: 250px; position: relative; } #gallery img:nth-child(2) { left: -200px; } #gallery img:hover{ z-index: 10; } I …

Member Avatar for gentlemedia
0
396
Member Avatar for TnTinMN

I have just seen a resurrected thread about issues with loading images to a PictureBox and the inability to delete the file while the program is running. There was no clear explaination of the problem, only suggested hacks and apparent frustration. So I thought I would offer this explanation from …

Member Avatar for J.C. SolvoTerra
0
7K
Member Avatar for J._1

<!DOCTYPE html> <html> <head> <title></title> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" type="text/css" href="./dist/style.css"> </head> <body> <header class="toolbar"> <div class="icons"> <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="64" height="64" viewBox="0 0 64 64"> <path d="M32 4c-8.837 0-16.836 3.582-22.627 9.374l-9.373-9.374v24h24l-8.971-8.97c4.344-4.343 10.343-7.030 16.971-7.030 13.254 0 24 10.745 24 24 0 7.169-3.143 13.602-8.126 18l5.292 6c6.644-5.864 10.834-14.442 10.834-24 …

Member Avatar for advent_geek
0
178
Member Avatar for annya

Iam just stuck on this code I want to add an water mark on in between this process but I don't know how to give it. If the user select upload on the first image the image will uploaded and it will show in the right side. I want to …

Member Avatar for Vivek_13
0
995
Member Avatar for batoolhussain
Member Avatar for batoolhussain
0
229
Member Avatar for Tcll

for those who don't know, the PNG format in WinXP MS Paint is actually extended. the format is supplied via mfc42u.dll found in system32/ with this in mind, it may be possible to write an exploit to add extended support for even more formats, and quite possibly custom formats.

Member Avatar for Tcll
2
396
Member Avatar for Abheek88

Hi guys, I have to create a C# application which is able to mask images but I don't really get on with it... I thought I will use this example for the project: http://www.camera-sdk.com/p_248-how-to-implement-image-masking-in-c-onvif.html Any ideas or experiences? Has anyboby here used this? Any help would be appreciated. Thanks!!

Member Avatar for JerrimePatient
0
2K
Member Avatar for bijutoha

With info-graphic back-linking when someone uses my image and posts it to a site that is considered very poor quality. Is there any negative-effect from Google? or Google may think I'm spamming with my links on random sites.?

Member Avatar for rinston
0
242
Member Avatar for N kamatchi

i does not know about store the image in database. what is the datatype of picture in oracle?

Member Avatar for erikko
0
135
Member Avatar for batoolhussain

hi everyone. how can I convert image fromat from jpeg to bmp without saving image in vn.net 2010.

Member Avatar for deceptikon
0
73
Member Avatar for spud91

Hi Guys I have a program thats supposed to generate 9 random objects made from lines and then allow me to save the panel showing the state of all 9 objects. Currently all 9 objects are being generated and when i click save the panel is being saved to a …

Member Avatar for JamesCherrill
0
405
Member Avatar for pars99

I need to fill an image created using a ton of QuadCurves, but they don't fill it all the way using the traditional fill method. Any suggestions? public class MonstercatComponent extends JComponent{ public void paintComponent(Graphics g){ Graphics2D g2 = (Graphics2D) g; drawGrid(g2); g2.setStroke(new BasicStroke(5)); QuadCurve2D earLeft1 = new QuadCurve2D.Double(145, 155, …

Member Avatar for mKorbel
0
390
Member Avatar for papuccino1

A THOUSAND apologies if this question has been asked time and time again. Google gave no results and Jeeves is retired so I come looking for help in the best programming forum around. [code=csharp]private void button1_Click(object sender, EventArgs e) { pictureBox1.ImageLocation=??????????? }[/code] My question is fairly simple, what do I …

Member Avatar for NetJunkie
0
2K
Member Avatar for ggeoff

Hi I am trying to provide access to a folder of photos. The website is Unix based so I can change permissions. I am using WISE-FTP 8 as my FTP program. I created a directory on the server and intend to upload about 40 photos to it. I uploaded one …

Member Avatar for Aeonix
0
277
Member Avatar for Ritesh123

Hi, I am developing a website. I have a folder containing some images. I have display list in gried view but on gried_itemcomannd download the image but following erroe are display i have trying the following code string filePath = "http://sdokannad.org/httpdocs/SDOKannad/DailyEntry/" + e.Item.Cells[12].Text; Response.AddHeader("Content-Disposition", "attachment;filename=\"" + e.Item.Cells[12].Text); Response.TransmitFile(filePath); Response.End(); **http:/sdokannad.org/httpdocs/SDOKannad/DailyEntry/20150409_125733' …

Member Avatar for tarunap
0
133
Member Avatar for AntonyRayan

Hi I am getting error this error while upload image? Error:Fatal error: Class 'Image' not found Code: $gallerycate_img = "gallerycateimg/".$_FILES["txt_photo"]["name"]; $gallerycate_image = $_FILES['txt_photo']['name']; if (($_FILES["txt_photo"]["type"] == "image/jpeg")||($_FILES["txt_photo"]["type"] == "image/jpg")||($_FILES["txt_photo"]["type"] == "image/gif")||($_FILES["txt_photo"]["type"] == "image/png")&& ($_FILES["txt_photo"]["size"] < 200000000)) { move_uploaded_file($_FILES["txt_photo"]["tmp_name"], "../gallerycateimg/" .$_FILES["txt_photo"]["name"]); copy("../".$gallerycate_img, "../gallerycateimg/thumb/".$gallerycate_image); $file_thumb="../gallerycateimg/thumb/".$gallerycate_image; $file_thumb_1="gallerycateimg/thumb/".$gallerycate_image; $img = new Image($file_thumb); $size = …

Member Avatar for pritaeas
0
206
Member Avatar for Amogha
Member Avatar for Nitin_8

Hi i would like to fetch images from name of the image by which i have stored the image from the upload folder. how can i do it in wordpress.

Member Avatar for diafol
0
284
Member Avatar for SoMa_2

I want to display images based on what user checked from number of checkboxs. I'm trying this code, but it not working <!Doctype html> <html><body> <form method="post" action="" id="myForm"> <div class="opt-first"> <h1><b>Subject</b></h1> <input type="checkbox" value="Account/Finance" name="subject[]" /> Account/Finance<br /> <input type="checkbox" value="Marketing" name="subject[]" /> Marketing<br /> <input type="checkbox" value="" name="subject[]" …

Member Avatar for diafol
0
1K
Member Avatar for tqmd1

Sir I have these codes <html> <head> <style type="text/css"> #pic { float:left; width: 170px; border: 1px solid red; padding: 1px; text-align: center; font-size:12px; } #pic img { float:left; width: 50px; height: 45px; } </style> </head> <body> <div id="pic"> <p> <img src="https://www.gravatar.com/avatar/ecefb26ed5fc91eca453b31a1f7cdfd8? d=identicon&s=80"> General Manager<br/> Azhar Sharif<br/> 0302-1234567 </p> </div> <body> …

Member Avatar for gentlemedia
0
152
Member Avatar for Goldfinch

** I was building a program that is supposed to paint an image in a JPanel. I should be able to select an image (such as a JPEG) from the Open item in the File drop down menu and then it should be visible in a new window. However, the …

Member Avatar for Goldfinch
0
201

The End.