Go Back   PimpAndHost Support Forums - #1 Image Hosting & Editing Site on the web! > Support > Suggestions / Feedbacks
Main Site Community Today's Posts Search

Suggestions / Feedbacks Please use this forum to provide your suggestions and feedback regarding our service.

Reply
 
Thread Tools Display Modes
Old 01-29-2012   #1
chipprell
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
chipprell is on a distinguished road
Default Automatic upload.

Hello,
is there any way how can I automatically upload images to pimpandhost, by any script, external app, or anything else?
chipprell is offline   Reply With Quote
Old 02-03-2012   #2
pimp
Team Leader
 
pimp's Avatar
 
Join Date: Mar 2007
Posts: 2,659
Thanks: 136
Thanked 562 Times in 261 Posts
pimp will become famous soon enough
Default

Automatically how? Give me example.
__________________

To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
- Making sharing easy - The #1 image hosting platform since 2006
pimp is online now   Reply With Quote
Old 02-18-2012   #3
chipprell
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
chipprell is on a distinguished road
Default

Sorry for late response.

Well i have C# aplication what works with images. I need to upload images to pimp and host and get url for original image size, something like:
http://www.pimpandhost.com/image/14226799-original.html

I can get that url thats not problem with search, but i dont know how to upload images with C#, im not familiar with this flashuploader :{

Any hints?
chipprell is offline   Reply With Quote
Old 02-21-2012   #4
korifeich
Junior Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
korifeich is on a distinguished road
Default

Here are my own function

public static string UploadImage(string imageLink, string imageSize)
{
string Link = "";
string command = "";

Post_Get login1 = new Post_Get("http://www.pimpandhost.com/upload/postUrl?req=%7B%22hash%22%3A%227582909469429%22%2C %22vall%22%3A%22" + imageLink + "%22%2C%22albumId%22%3A-1%7D");
try
{
Link = @login1.postGet();
}
catch (WebException ex)
{
return "bad";
}
StringBuilder sb = new StringBuilder(Link);
sb.Replace("\\/", "/");
Link = sb.ToString();
string pattern = @"http://www.pimpandhost.[a-z|/]+([0-9|a-z]+)";
Match Match = Regex.Match(Link, pattern);
Link = Match.Groups[1].ToString();
command = "http://www.pimpandhost.com/image/" + Link + "-original.html";
try
{
login1 = new Post_Get(command);
Link = @login1.postGet();
}
catch(WebException ex)
{
return "bad";
}
switch (imageSize)
{
case "original": pattern = "<input.+bb_codes_original.+.*"; break;
case "thumb": pattern = "<input.+bb_codes_thumb.+.*"; break;
case "small": pattern = "<input.+bb_codes_small.+.*"; break;
case "medium": pattern = "<input.+bb_codes_medium.+.*"; break;
}
Match = Regex.Match(Link, pattern);
Link = Match.ToString();
if (imageSize == "small" || imageSize == "thumb")
{
pattern = "http://.*jpg";
Match = Regex.Match(Link, pattern);
if (Match.ToString() == "")
{
pattern = "http://.*png";
Match = Regex.Match(Link, pattern);
}
Link = Match.ToString();
return "";
}
else
{
pattern = "http://i.*jpg";
Match = Regex.Match(Link, pattern);
if (Match.ToString() == "")
{
pattern = "http://i.*png";
Match = Regex.Match(Link, pattern);
}
Link = Match.ToString();
return "[IMG]" + Link + "[/IMG]";
}
}

Post_GEt is just modified get request

But this is Remote upload by the link.
korifeich is offline   Reply With Quote
Old 02-29-2012   #5
chipprell
Junior Member
 
Join Date: Jan 2012
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
chipprell is on a distinguished road
Default

Thx, i will look at it later, gtg work now.
chipprell is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:15 AM.

(c) www.Pimpandhost.com Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.