Error image type not supported

Нужно использовать сервис ruCaptha для распознавания капчи. Описание API на их сайте. Если кратко, то им нужно POST запросом отправлять картинку закодированную в base64 и потом в URLEncode. Когда...

Нужно использовать сервис ruCaptha для распознавания капчи.
Описание API на их сайте.

Если кратко, то им нужно POST запросом отправлять картинку закодированную в base64 и потом в URLEncode.

Когда это сделано так

String url = "http://rucaptcha.com/in.php";
URL obj = new URL(url);
HttpURLConnection con = (HttpURLConnection) obj.openConnection();

//add reuqest header
con.setRequestMethod("POST");
con.setRequestProperty("User-Agent", USER_AGENT);
con.setRequestProperty("Accept-Language", "en-US,en;q=0.5");

String urlParameters = "method=base64&key=*****************&"+"body="+img+"&submit=загрузить и получить ID";

// Send post request
con.setDoOutput(true);

try (DataOutputStream wr = new DataOutputStream(con.getOutputStream())) {
    wr.writeBytes(urlParameters);
    wr.flush();
}

StringBuffer response;

try (BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()))) {
    String inputLine;
    response = new StringBuffer();
    while ((inputLine = in.readLine()) != null) {
        response.append(inputLine);
    }
}

resp = response.toString();
resp_code = resp.substring(3);

System.out.println("ID заказа : "+resp_code);

То все работает. Но нужно сделать это при помощи Apache HTTP Client 4.5.2. Написал такой код

HttpPost httpPost = new HttpPost("http://rucaptcha.com/in.php");
java.util.List <NameValuePair> nvps = new ArrayList <NameValuePair>(); 

nvps.add(new BasicNameValuePair("method", "base64"));
nvps.add(new BasicNameValuePair("key", "***********"));
nvps.add(new BasicNameValuePair("body", img));
nvps.add(new BasicNameValuePair("submit", "загрузить и получить ID"));

httpPost.setEntity(new UrlEncodedFormEntity(nvps));
httpPost.setConfig(config);


CloseableHttpResponse response = httpClient.execute(httpPost);

String entityString = EntityUtils.toString(response.getEntity());

System.out.println(entityString);

resp_code = entityString.substring(3);
    //System.out.println(resp);
System.out.println("ID заказа : "+resp_code);

EntityUtils.consume(response.getEntity());

Но получаю ошибку ERROR_IMAGE_TYPE_NOT_SUPPORTED. Погуглив понял что нужно отправлять POST типа multipart/form-data. Но как это сделать конкретно в данной ситуации?

отлавливаю аналузером ошибку «ERROR_IMAGE_TYPE_NOT_SUPPORTED» , когда использую функцию uploadFile, при любой ссылке на капчу. Ошибка означает, что «Сервер не может опознать тип вашего файла. Проверьте файл изображения.» Как это исправить?

вот весь код

var ruCaptcha = {

getAnswer: function(callback){

var captchaId = ruCaptcha.captchaID;
var apiKey = ruCaptcha.apikey;
$.ajax ({
type: ‘GET’,
url: ‘http://rucaptcha.com/res.php’,
data: ‘key=’ + apiKey + ‘&action=get&id=’ + captchaId + «&json=true&header_acao=1»,

success: function(answer){
if(answer.status && answer.status == 1){
ruCaptcha.securityCode = answer.request;
ruCaptcha.actions.message(«Ну вроде справились, код на картинке : » + answer.request);
if (callback){
callback(null);
return;
}
}else if(answer.status == 0 && answer.request == «CAPCHA_NOT_READY»){
ruCaptcha.actions.message(«Не готово, отдохни чутка ©: «);

setTimeout(function(){
ruCaptcha.getAnswer(callback);
}, 1000);
return;
}else if(answer.status == 0 && answer.request == «ERROR_CAPTCHA_UNSOLVABLE»){
ruCaptcha.actions.message(«Моя не уметь читать такие цифры «);

setTimeout(function(){
ruCaptcha.getCode(callback);
}, 1000);
return;
}
},
error: function(xhr, error){
ruCaptcha.actions.message(«Что-то опять пошло не так… «);
setTimeout(function(){
ruCaptcha.getAnswer(callback);
}, 1000);
}
});

},
getBallance: function(callback){

var apiKey = ruCaptcha.apikey;
$.ajax ({
type: ‘GET’,
url: ‘http://rucaptcha.com/res.php’,
data: ‘key=’ + apiKey + ‘&action=getbalance&json=true&header_acao=1’,

success: function(answer){
if(answer.status && answer.status == 1){
ruCaptcha.actions.message(«Ваш балланс составляет : » + answer.request);

if (callback){
callback(null);
return;
}
}else{
ruCaptcha.actions.message(«Неизвестная ошибка»);

}
},
error: function(xhr, error){
ruCaptcha.actions.message(«Что-то опять пошло не так… «);
setTimeout(function(){
ruCaptcha.getBallance(callback);
}, 1000);
}
});

},
getImage: function(callback){
var url = ruCaptcha.url;

ruCaptcha.convertFileToBase64viaFileReader(url, function(base64img){
ruCaptcha.base64img = base64img;
if(callback){
callback(null);

}
});

},
uploadFile: function(callback){

var base64img = ruCaptcha.base64img;
var apiKey = ruCaptcha.apikey;
var softID = ruCaptcha.soft_id;
$.ajax ({
type: ‘POST’,
url: ‘http://rucaptcha.com/in.php’,
data: ‘method=base64&key=’ + apiKey + ‘&body=’ + base64img + ‘&json=true&header_acao=1&soft_id=’ + softID,

success: function(answer){
if(answer.status && answer.status == 1){
ruCaptcha.captchaID = answer.request;
ruCaptcha.actions.message(«Поставлено в обработку под номером : » + answer.request);

if (callback){
callback(null)
};

}else if (answer.status == 0 && answer.request == «ERROR_ZERO_CAPTCHA_FILESIZE»){
ruCaptcha.actions.message(«Не картинка, а безвкусица!!!…»);

setTimeout(function(){
ruCaptcha.getCode(callback);
}, 5000);
return;

}else if (answer.status == 0 && answer.request == «ERROR_NO_SLOT_AVAILABLE»){
ruCaptcha.actions.message(«Никто не хочет работать за такие копейки, ждем…..»);
setTimeout(function(){
ruCaptcha.getCode(callback);
}, 5000);
return;

}else if (answer.status == 0 && answer.request == «ERROR_ZERO_BALANCE») {
ruCaptcha.actions.stop(callback);
ruCaptcha.actions.message(«Нулевой балланс. Есть мелочь?»);
return;
}

},
error: function(xhr, error){
ruCaptcha.actions.message(«Что-то опять пошло не так…»);

setTimeout(function(){
ruCaptcha.uploadFile(callback);
}, 1000);
}

});

},
complaint: function(callback){
var captchaId = ruCaptcha.captchaID;
var apiKey = ruCaptcha.apikey;
$.ajax ({
type: ‘GET’,
url: ‘http://rucaptcha.com/res.php’,
data: ‘key=’ + apiKey + ‘&action=reportbad&id=’ + captchaId + «&json=true&header_acao=1»,

success: function(answer){
if (callback){
callback(null)
};
},
error: function(){
ruCaptcha.actions.stop(callback);
}
});
},
getCode: function(callback){

async.series([

ruCaptcha.getImage,
ruCaptcha.uploadFile,
ruCaptcha.getAnswer

],
function(err, results){
if(callback){
callback(null);
}
}
);

},
convertFileToBase64viaFileReader: function(url, callback){

var xhr = new XMLHttpRequest();
xhr.responseType = ‘blob’;
xhr.onload = function() {
var reader = new FileReader();
reader.onloadend = function () {
callback(reader.result);
};
reader.readAsDataURL(xhr.response);
};
xhr.open(‘GET’, url);
xhr.send();
}
,
actions: {
stop: function(callback){
/*Действия при остановке*/
},
message:function(text){
/*Сделать обертку для логирования*/
console.log(text);

}
},
securityCode:»»,
base64img:»»,
captchaID:»»,
soft_id:»»,
url:»»,
apikey:»»

};

__________________
Помощь в написании контрольных, курсовых и дипломных работ, диссертаций здесь

Hey there Broni, I followed another one of your posts similar to this up to the FRST.txt and realized it was going to be computer specific. Here is the Addition:

ADDITION:
Additional scan result of Farbar Recovery Scan Tool (x64) Version: 17-07-2013 02
Ran by Collin at 2013-07-17 20:59:36
Running from C:UsersCollinDesktop
Boot Mode: Normal
==========================================================

==================== Installed Programs =======================

64 Bit HP CIO Components Installer (Version: 7.2.8)
Akamai NetSession Interface (HKCU)
Apple Mobile Device Support (Version: 6.1.0.13)
AutoCAD 2013 — English (Version: 19.0.114.0)
AutoCAD 2013 — English (Version: 19.0.55.0)
AutoCAD 2013 — English SP1.1 (Version: 1)
AutoCAD 2013 Language Pack — English (Version: 19.0.55.0)
Autodesk Inventor Fusion 2012 (Version: 1.0.0.79)
Autodesk Inventor Fusion 2012 Language Pack (Version: 1.0.0.79)
Autodesk Inventor Fusion 2013 (Version: 2.0.0.206)
Autodesk Inventor Fusion plug-in for AutoCAD 2012 (Version: 0.0.1.138)
Autodesk Inventor Fusion plug-in for AutoCAD 2013 (Version: 0.2.0.230)
Autodesk Inventor Fusion plug-in language pack for AutoCAD 2012 (Version: 0.0.1.138)
Autodesk Inventor Fusion plug-in language pack for AutoCAD 2013 (Version: 0.2.0.230)
Autodesk Simulation Multiphysics 2012 (Version: 2012.00.00.0163)
Autodesk Sync (Version: 3.5.102.0)
Bonjour (Version: 3.0.0.10)
Definition Update for Microsoft Office 2010 (KB982726) 64-Bit Edition
DWG TrueView 2013 (Version: 19.0.55.0)
hematica Extras 9.0 (4092550) (Version: 9.0.1)
HP Customer Participation Program 13.0 (Version: 13.0)
HP Deskjet 3050A J611 series Basic Device Software (Version: 23.0.504.0)
HP Deskjet 3510 series Basic Device Software (Version: 28.0.989.0)
HP Imaging Device Functions 13.0 (Version: 13.0)
HP Photosmart Officejet and Deskjet All-In-One Driver Software 13.0 Rel. B (Version: 13.0)
HP Smart Web Printing 4.51 (Version: 4.51)
HP Solution Center 13.0 (Version: 13.0)
iCloud (Version: 2.1.2.8)
Intel PROSet Wireless
Intel(R) PROSet/Wireless for Bluetooth(R) 3.0 + High Speed (Version: 15.0.0.0059)
Intel(R) Wireless Display
Intel(R) Wireless Music device driver (Version: 1.5.5323.0)
Intel® PROSet/Wireless WiFi Software (Version: 15.00.0000.0642)
Intel® Trusted Connect Service Client (Version: 1.23.605.1)
iTunes (Version: 11.0.4.4)
Java(TM) 7 Update 5 (64-bit) (Version: 7.0.50)
LEGO MINDSTORMS NXT x64 Driver (Version: 1.20.115.0)
Lenovo Bluetooth with Enhanced Data Rate Software (Version: 6.5.1.2300)
Lenovo OneKey Recovery (Version: 7.0.0.3712)
Microsoft .NET Framework 4 Client Profile (Version: 4.0.30319)
Microsoft .NET Framework 4 Extended (Version: 4.0.30319)
Microsoft Application Error Reporting (Version: 12.0.6015.5000)
Microsoft Office 2010 Service Pack 1 (SP1)
Microsoft Office Access MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Access Setup Metadata MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Excel MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Office 32-bit Components 2010 (Version: 14.0.6029.1000)
Microsoft Office OneNote MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Outlook MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office PowerPoint MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Professional 2010 (Version: 14.0.6029.1000)
Microsoft Office Proof (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Proof (French) 2010 (Version: 14.0.6029.1000)
Microsoft Office Proof (Spanish) 2010 (Version: 14.0.6029.1000)
Microsoft Office Proofing (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Publisher MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Shared 32-bit MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Shared MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Shared Setup Metadata MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Office Single Image 2010 (Version: 14.0.6029.1000)
Microsoft Office Word MUI (English) 2010 (Version: 14.0.6029.1000)
Microsoft Silverlight (Version: 5.1.20125.0)
Microsoft Visual C++ 2005 Redistributable (x64) (Version: 8.0.56336)
Microsoft Visual C++ 2005 Redistributable (x64) (Version: 8.0.59192)
Microsoft Visual C++ 2005 Redistributable (x64) (Version: 8.0.61000)
Microsoft Visual C++ 2008 Redistributable — x64 9.0.30729.17 (Version: 9.0.30729)
Microsoft Visual C++ 2008 Redistributable — x64 9.0.30729.4148 (Version: 9.0.30729.4148)
Microsoft Visual C++ 2008 Redistributable — x64 9.0.30729.6161 (Version: 9.0.30729.6161)
Microsoft Visual C++ 2010 x64 Redistributable — 10.0.40219 (Version: 10.0.40219)
Microsoft Visual Studio 2005 Remote Debugger Light (x64) — ENU
Microsoft Visual Studio 2005 Remote Debugger Light (x64) — ENU (Version: 8.0.52572)
MotioninJoy Gamepad tool 0.7.0000 (Version: 0.7.0000)
Network64 (Version: 130.0.572.000)
Network64 (Version: 140.0.221.000)
NI Assistant Framework 64-bit (Version: 7.5.127.0)
NI Authentication 2.0 (64-bit) (Version: 2.0.220.0)
NI Curl 1.1 (64-bit) (Version: 1.1.216.0)
NI DataSocket 4.9 (64-bit) (Version: 4.9.217.0)
NI GMP Windows 64-bit Installer 11.0.0 (Version: 11.0.22.0)
NI Help Assistant (64bit) (Version: 1.0.11)
NI LabVIEW Broker (64 bit) (Version: 6.8.10.0)
NI Logos64 5.3.0 (Version: 5.3.223.0)
NI Logos64 XT Support (Version: 5.3.222.0)
NI Math Kernel Libraries (64-bit) (Version: 1.0.14.0)
NI Math Kernel Libraries (64-bit) (Version: 1.0.5.0)
NI MAX Remote Configuration 64-bit Installer 5.0 (Version: 5.00.49153)
NI MAX Support for 64 Bit Windows (Version: 5.00.49153)
NI mDNS Responder 1.6 for Windows 64-bit (Version: 1.60.49155)
NI MXS 5.0.0 for 64 Bit Windows (Version: 5.00.49153)
NI Network Discovery 5.0 for Windows 64-bit (Version: 5.00.49152)
NI Portable Configuration for 64 Bit Windows 5.0.0 (Version: 5.00.49152)
NI SSL Support (64-bit) (Version: 10.0.297.0)
NI System API Windows 64-bit 5.0.0 (Version: 5.0.312.0)
NI System Configuration Runtime 5.0.0 for Windows 64-bit (Version: 5.0.361.0)
NI System State Publisher (64-bit) (Version: 11.0.306.0)
NI System Web Server Base 2.0 (64-bit) (Version: 2.0.215.0)
NI TDM Excel Add-In 3.3 64-bit (Version: 3.3.28.0)
NI TDMS (64-bit) (Version: 2.3.175.0)
NI Trace Engine (64-bit) (Version: 11.0.213.0)
NI USI 1.9.0 64-Bit (Version: 1.9.04551)
NI Variable Engine (64-bit) (Version: 2.5.242.0)
NI VC2005MSMs x64 (Version: 8.04.0)
NI VC2008MSMs x64 (Version: 9.0.301)
NI Web Application Server 2.0 (64-bit) (Version: 1.1.269.0)
NI Web Pipeline 2.0.1 64-bit support (Version: 2.0.122.0)
NI Xalan Delay Load 1.10.1 64-bit (Version: 1.10.47.0)
NI Xerces Delay Load 2.7.3 64-bit (Version: 2.7.190.0)
NI-DAQmx/LabVIEW shared documentation for 64 Bit Windows 1.9.5 (Version: 1.95.49152)
NI-RPC 4.2.2f0 for 64 Bit Windows (Version: 4.22.49152)
NVIDIA Control Panel 306.97 (Version: 306.97)
NVIDIA Graphics Driver 306.97 (Version: 306.97)
NVIDIA Install Application (Version: 2.1002.85.551)
NVIDIA Optimus 1.10.8 (Version: 1.10.8)
NVIDIA PhysX System Software 9.12.0604 (Version: 9.12.0604)
NVIDIA Update 1.10.8 (Version: 1.10.8)
NVIDIA Update Components (Version: 1.10.8)
OCR Software by I.R.I.S. 13.0 (Version: 13.0)
Python 2.7.3 (64-bit) (Version: 2.7.3150)
Shared C Run-time for x64 (Version: 10.0.0)
Shop for HP Supplies (Version: 13.0)
SolidWorks 2012 x64 Edition SP02 (Version: 20.120.55)
SolidWorks eDrawings 2012 x64 Edition SP02 (Version: 12.2.110)
Synaptics Pointing Device Driver (Version: 15.3.38.0)
Update for Microsoft Office 2010 (KB2553065)
Update for Microsoft Office 2010 (KB2553181) 64-Bit Edition
Update for Microsoft Office 2010 (KB2553267) 64-Bit Edition
Update for Microsoft Office 2010 (KB2553310) 64-Bit Edition
Update for Microsoft Office 2010 (KB2553378) 64-Bit Edition
Update for Microsoft Office 2010 (KB2566458)
Update for Microsoft Office 2010 (KB2598242) 64-Bit Edition
Update for Microsoft Office 2010 (KB2687509) 64-Bit Edition
Update for Microsoft Office 2010 (KB2760631) 64-Bit Edition
Update for Microsoft Office 2010 (KB2767886) 64-Bit Edition
Update for Microsoft OneNote 2010 (KB2553290) 64-Bit Edition
Update for Microsoft Outlook 2010 (KB2597090) 64-Bit Edition
Update for Microsoft Outlook 2010 (KB2687623) 64-Bit Edition
Update for Microsoft Outlook Social Connector 2010 (KB2553406) 64-Bit Edition
Update for Microsoft PowerPoint 2010 (KB2598240) 64-Bit Edition
Update for Microsoft SharePoint Workspace 2010 (KB2589371) 64-Bit Edition
VmciSockets (Version: 9.1.54.1)
Windows Live Family Safety (Version: 15.4.3502.0922)
Windows Live ID Sign-in Assistant (Version: 7.250.4225.0)
Windows Live Language Selector (Version: 15.4.3508.1109)
Windows Live MIME IFilter (Version: 15.4.3502.0922)
Windows Live Remote Client (Version: 15.4.5722.2)
Windows Live Remote Client Resources (Version: 15.4.5722.2)
Windows Live Remote Service (Version: 15.4.5722.2)
Windows Live Remote Service Resources (Version: 15.4.5722.2)
WinRAR 4.20 (64-bit) (Version: 4.20.0)

==================== Restore Points =========================

04-07-2013 05:00:00 Scheduled Checkpoint
13-07-2013 07:12:38 Windows Update
13-07-2013 11:29:34 Windows Update
14-07-2013 04:15:25 Windows Update
14-07-2013 04:34:41 Windows Update
17-07-2013 17:36:33 Windows Update

==================== Hosts content: ==========================

2009-07-13 21:34 — 2012-12-09 03:36 — 00000824 ____A C:Windowssystem32Driversetchosts

==================== Scheduled Tasks (whitelisted) =============

Task: {01115868-8140-456C-9506-FA2372334D1F} — System32TasksMirageAgent => C:Program Files (x86)LenovoYouCamYCMMirage.exe [2011-01-29] (CyberLink)
Task: {116458B3-344C-4AFE-9C6F-C49D26ABE773} — System32TasksMicrosoftWindows LiveSOXEExtractor Definitions Update Task
Task: {13F04D83-F3A5-4581-A4B6-A767B5DAD7B7} — System32TasksLAUNCH CDPCO => C:Program Files (x86)USTechSupportPC OptimizerUSTSPCO.exe No File
Task: {1B2719E7-97D7-4548-8BA8-21ED6DD2CCB0} — System32TasksAppleAppleSoftwareUpdate => C:Program Files (x86)Apple Software UpdateSoftwareUpdate.exe [2011-06-01] (Apple Inc.)
Task: {3976F64D-06FE-4D98-8AE8-0418DB39EB41} — System32TasksAdobeAAMUpdater-1.0-Collin-PC-Collin => C:Program Files (x86)Common FilesAdobeOOBEPDAppUWAUpdaterStartupUtility.exe [2012-04-04] (Adobe Systems Incorporated)
Task: {3BE091D5-4B7F-4607-87C1-49ADF67DC84E} — System32TasksGo for FilesUpdate => C:Program Files (x86)GoforFilesGFFUpdater.exe No File
Task: {533F15A3-9C09-4D97-AFBB-F530C8B5C379} — System32TasksGoogleUpdateTaskMachineCore => C:Program Files (x86)GoogleUpdateGoogleUpdate.exe [2012-06-05] (Google Inc.)
Task: {803082DF-7689-46D6-99C2-BE65686D34E8} — System32TasksGoogleUpdateTaskMachineUA => C:Program Files (x86)GoogleUpdateGoogleUpdate.exe [2012-06-05] (Google Inc.)
Task: {80B2920C-8FC2-4545-9408-F17D9FD92A08} — System32TasksNIUpdateServiceCheckTask => C:Program Files (x86)National InstrumentsSharedUpdate ServiceNIUpdateService.exe [2011-06-07] (National Instruments)
Task: {E009B097-8A77-409A-9F44-D931860E89B2} — System32TasksAdobe Flash Player Updater => C:WindowsSysWOW64MacromedFlashFlashPlayerUpdateService.exe [2013-06-12] (Adobe Systems Incorporated)
Task: C:WindowsTasksAdobe Flash Player Updater.job => C:WindowsSysWOW64MacromedFlashFlashPlayerUpdateService.exe
Task: C:WindowsTasksGoogleUpdateTaskMachineCore.job => C:Program Files (x86)GoogleUpdateGoogleUpdate.exe
Task: C:WindowsTasksGoogleUpdateTaskMachineUA.job => C:Program Files (x86)GoogleUpdateGoogleUpdate.exe

==================== Faulty Device Manager Devices =============

Name:
Description:
Class Guid:
Manufacturer:
Service:
Problem: : The drivers for this device are not installed. (Code 28)
Resolution: To install the drivers for this device, click «Update Driver», which starts the Hardware Update wizard.

Name: Officejet 6300 series
Description: Officejet 6300 series
Class Guid:
Manufacturer:
Service:
Problem: : The drivers for this device are not installed. (Code 28)
Resolution: To install the drivers for this device, click «Update Driver», which starts the Hardware Update wizard.

Name: Officejet 6300 series
Description: Officejet 6300 series
Class Guid: {4d36e971-e325-11ce-bfc1-08002be10318}
Manufacturer: HP
Service:
Problem: : This device is disabled. (Code 22)
Resolution: In Device Manager, click «Action», and then click «Enable Device». This starts the Enable Device wizard. Follow the instructions.

==================== Event log errors: =========================

Application errors:
==================
Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The index cannot be initialized.

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The application cannot be initialized.

Context: Windows Application

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The gatherer object cannot be initialized.

Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in in <Search.TripoliIndexer> cannot be initialized.

Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in in <Search.JetPropStore> cannot be initialized.

Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in in <Search.MapPI> cannot be initialized.

Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in manager <> cannot be initialized.

Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in manager <> cannot be initialized.

Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service) (User: )
Description: The plug-in manager <> cannot be initialized.

Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:57:43 PM) (Source: Windows Search Service) (User: )
Description: The index cannot be initialized.

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

System errors:
=============
Error: (07/17/2013 08:58:22 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated unexpectedly. It has done this 26 time(s).

Error: (07/17/2013 08:58:22 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated with service-specific error %%-2147218170.

Error: (07/17/2013 08:57:43 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated unexpectedly. It has done this 25 time(s).

Error: (07/17/2013 08:57:43 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated with service-specific error %%-2147218170.

Error: (07/17/2013 08:02:01 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated unexpectedly. It has done this 24 time(s).

Error: (07/17/2013 08:02:01 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated with service-specific error %%-2147218170.

Error: (07/17/2013 08:00:01 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated unexpectedly. It has done this 23 time(s).

Error: (07/17/2013 08:00:01 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated with service-specific error %%-2147218170.

Error: (07/17/2013 07:34:01 PM) (Source: Microsoft-Windows-Kernel-General) (User: NT AUTHORITY)
Description: 0x8000002a171??Volume{9eee80c7-aee5-11e1-88fc-806e6f6e6963}System Volume InformationSPPSppCbsHiveStore{cd42efe1-f6f1-427c-b004-033192c625a4}{40BF05FC-90EA-4E04-A833-370C757C1EA3}

Error: (07/17/2013 07:09:29 PM) (Source: Service Control Manager) (User: )
Description: The Windows Search service terminated unexpectedly. It has done this 22 time(s).

Microsoft Office Sessions:
=========================
Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description:
Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)
Search.TripoliIndexer

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)
Search.JetPropStore

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application, SystemIndex Catalog

Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)
Search.MapPI

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:58:22 PM) (Source: Windows Search Service)(User: )
Description: Context: Windows Application

Details:
(HRESULT : 0x800401f3) (0x800401f3)

Error: (07/17/2013 08:57:43 PM) (Source: Windows Search Service)(User: )
Description:
Details:
The specified object cannot be found. Specify the name of an existing object. (HRESULT : 0x80040d06) (0x80040d06)

CodeIntegrity Errors:
===================================
Date: 2013-05-28 18:18:59.685
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-31 23:51:41.614
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-31 23:51:41.288
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-01 18:22:09.968
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-01 18:22:09.734
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-01 18:21:41.120
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-03-01 18:21:40.862
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-02-26 21:20:36.478
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2013-02-26 21:20:36.376
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

Date: 2012-10-15 14:47:49.728
Description: Code Integrity is unable to verify the image integrity of the file DeviceHarddiskVolume2WindowsSystem32dsound.dll because the set of per-page image hashes could not be found on the system.

==================== Memory info ===========================

Percentage of memory in use: 22%
Total physical RAM: 8094.36 MB
Available physical RAM: 6289.41 MB
Total Pagefile: 16186.89 MB
Available Pagefile: 13877.23 MB
Total Virtual: 8192 MB
Available Virtual: 8191.84 MB

==================== Drives ================================

Drive c: (Windows7_OS) (Fixed) (Total:886.32 GB) (Free:660.81 GB) NTFS (Disk=0 Partition=2) ==>[System with boot components (obtained from reading drive)]
Drive d: (LENOVO) (Fixed) (Total:25.47 GB) (Free:21.68 GB) NTFS (Disk=0 Partition=3)
Drive e: (USB20FD) (Removable) (Total:14.92 GB) (Free:14.16 GB) FAT32 (Disk=1 Partition=1)

==================== MBR & Partition Table ==================

========================================================
Disk: 0 (MBR Code: Windows 7 or 8) (Size: 932 GB) (Disk ID: 3B8DB40F)
Partition 1: (Active) — (Size=200 MB) — (Type=07 NTFS)
Partition 2: (Not Active) — (Size=886 GB) — (Type=07 NTFS)
Partition 3: (Not Active) — (Size=25 GB) — (Type=07 NTFS)
Partition 4: (Not Active) — (Size=20 GB) — (Type=12)

========================================================
Disk: 1 (Size: 15 GB) (Disk ID: 04030201)
Partition 1: (Not Active) — (Size=15 GB) — (Type=0C)

==================== End Of Log ============================

  • Index
  • Recent Topics
  • Search

  • Log in

  1. Forum

  2. Commercial Joomla Extensions & Templates

  3. Simple Image Gallery PRO

  4. Image type not supported Error

Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.

Support requests should ONLY be directed there and require an active subscription plan.

This forum board is to be used for archive purposes and knowledge exchange ONLY.


14 years 1 month ago #19515
by Nicola Winzer

Hello,

I get this error:

Warning: getimagesize(/home/httpd/vhosts/eclat.ch/httpdocs/joomla1581_mig/images/stories/schaufenster/aduno/adunoxx.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/httpd/vhosts/eclat.ch/httpdocs/joomla1581_mig/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

The image-files are all named in lowercase.

What is wrong? See www.eclat.ch/joomla1581_mig/index.php?option=com_content&view=article&id=22&Itemid=36

Thanks for quick help.

Regards
Nicola

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19516
by JoomlaWorks Support Team

Hi there!

Does your server support the GD2 graphic library?
You also have to check if the php supports he getimageize function, because I know that there are versions of php that don’t support it!

Thank you!


JoomlaWorks Support Team

Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


14 years 1 month ago14 years 1 month ago #19517
by Nicola Winzer

I don’t know. How can I check that?

It is PHP 5.1.6
built on: Linux washington.isc.ch 2.4.21-27.0.2.EL #1 Wed Jan 19 02:20:34 GMT 2005 i686

I had SIGP 1.2 running on the same server, on Joomla 1.0.12. It worked. Has the new Version changed so much?

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19518
by JoomlaWorks Support Team

If you had the previous version of sig pro, that means your server supports gd2!

Well, the server returns the error

Warning: getimagesize(/home/httpd/vhosts/eclat.ch/httpdocs/joomla1581_mig/images/stories/schaufenster/aduno/adunoxx.gif) [function.getimagesize]: failed to open stream: No such file or directory in /home/httpd/vhosts/eclat.ch/httpdocs/joomla1581_mig/plugins/content/jwsigpro/sigpro_engine.php on line 86
Image type not supported

If you type on the browser

http://www.eclat.ch/joomla1581_mig/images/stories/schaufenster/aduno/adunoxx.gif

you’ll see that the image doesn’t exist and I believe this is the reason that the getimagesize function doesn’t work!
Can you please check if this image exist? And if exist, check if the image has the permissions to be viewed from the browser!

Thank you!


JoomlaWorks Support Team

Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


14 years 1 month ago14 years 1 month ago #19519
by defeedme

Wow, I am very disappointed with this..
The simple gallery worked so nice and easy in joomla 1.0 so I went and purchased your Pro version for my new joomla 1.5 site…

I get image type not supported on my front page and it disabled my entire site !!!
so I cant even show you the error because I can’t have my site down..
I had to remove it.. I am going to try the non-pro version and see if that works..

my site is JBLC.net

Thanks..
UPDATE: the non-Pro version works FINE.. not sure why you made the pro version so complicated that it just doesn’t work out of the box ??? 

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19520
by JoomlaWorks Support Team

What exactly was the issue and how did you manage it?
The script is working now as I can see.
Thank you!


JoomlaWorks Support Team

Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


14 years 1 month ago12 years 9 months ago #19521
by defeedme

The pro script definitly «aint» workin for me, I had to revert back to the free version, non-pro.. That one works

awesome

and i even got it working with Highslide! .. you can see the core hack here: solariz.de/forum?wpforumaction=viewtopic&t=26.0

for some reason I could not get this plugin to re-write the rel=”lightbox” tags correctly so I hacked the core of simple image gallery and it seems to be working great, even within azrul jomcomments !
hack:
only thing I had to make sure is the option in the solariz plugin “force JS include” is set to force..

just replace the jwsig.php with the one here: defeedme.com/jwsig.zip

Fotis tells me the problem with the pro version is my web host is not using the latest GD.
1&1 is the largest web host, I can’t believe they are not using the latest…

enjoy the highslide   8)  Thanks

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19522
by JoomlaWorks Support Team

I’m glad you found something that fit you
but we can’t say that the sig pro doesn’t work!
Because it works! You could check out the sites of all of our customers to see it!
Yes, of course, there are templates or something else that could have conflicts with sig pro.
But for that reason we are here! To help!

Sorry but you didn’t give me the chance to help you…
You could set up a temporary page with the sig pro installed
and I would be able to resolve any issue!

Never mind!
I’m really glad that you are ok with this hack!

Regards


JoomlaWorks Support Team

Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19523
by defeedme

Vinikey,
it appears that you are not giving refunds even though I cannot use your product. All my sites use 1&1 web hosting so I cannot use SIG pro according to Fotis — also it is significantly different than the non-pro version and seems to have many issues — reading the other posts..

Since I paid for something I will not be using, Would it be at least possible to get a credit towards your other product, frontpage slideshow ??  At least that would be good faith.

Best, Mike

Please Log in or Create an account to join the conversation.


14 years 1 month ago #19524
by Nicola Winzer

Hello vinikey,

The images can be found, they are all accessible. The one you tried had capital letters

http://www.eclat.ch/joomla1581_mig/images/stories/schaufenster/aduno/adunoXX.gif

the customer has created them, I have to change them.

So I still have the problem. See

http://www.eclat.ch/joomla1581_mig/index.php?option=com_content&view=article&id=70&Itemid=70

Any other ideas?

Thanks
Nicola

Please Log in or Create an account to join the conversation.

  1. Forum

  2. Commercial Joomla Extensions & Templates

  3. Simple Image Gallery PRO

  4. Image type not supported Error

; edited by Alex33, 10.04.2016, rucaptcha
#include-once
;Opt('MustDeclareVars', 1) ; декларирование переменных

; #INDEX# =======================================================================================================================
; Title .........: rucaptcha.com
; AutoIt Version : 3.0
; Language ......: Russian
; Website: ......: http://rucaptcha.com/?action=api
; Description ...: API функции для работы с сервисом разгадывания капчи http://rucaptcha.com/
; Author(s) .....: SERJ
; ===============================================================================================================================

; #CURRENT# =====================================================================================================================
;_antigatecom_balance:     Получение текущего денежного баланса
;_antigatecom_get:         Отправка изображения и получение текста капчи
;_antigatecom_bad:         Пожаловаться на неправильно разгаданный текст
;_antigatecom_stats:       Получение статистику использования аккаунта
;_antigatecom_statsSystem: Статистика системы в реальном времени
; ===============================================================================================================================

; #INTERNAL_USE_ONLY# ===========================================================================================================
;__antigatecom_upload:     Отправка изображения на сервер
;__antigatecom_check:      Получение статуса капчи
;__antigatecom_error:      Перевод текста ошибки на понятный язык
; ===============================================================================================================================

; #FUNCTION# ====================================================================================================================
; Name...........: _antigatecom_balance
; Description ...: Получение текущего денежного баланса
; Syntax.........: _antigatecom_balance($apiKey)
; Parameters ....: $apiKey - ключ аккаунта
; Return values .: Success: баланс
;                  Failure: @error и текст ошибки
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func _antigatecom_balance($apiKey)
  Local $sResp = InetRead('http://rucaptcha.com/res.php?key=' & $apiKey & '&action=getbalance')
  $sResp = BinaryToString($sResp)
  Local $sOut = __antigatecom_error($sResp)
  If $_DEBUG Then ConsoleWrite('--> проверка баланса: ' & $sOut & @LF)
  If StringInStr($sResp, 'ERROR_') Then SetError(1)
  Return $sOut
EndFunc ;==> _antigatecom_balance

; #FUNCTION# ====================================================================================================================
; Name...........: __antigatecom_upload
; Description ...: Отправка изображения на сервер
; Syntax.........: __antigatecom_upload($apiKey, $pathFile)
; Parameters ....: $apiKey - ключ аккаунта
;                  $pathFile - путь до изображения с капчёй
; Return values .: Success: id капчи
;                  Failure: @error и текст ошибки
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func __antigatecom_upload($apiKey, $pathFile)

  ;~~~ проверка существования файла
  If Not FileExists($pathFile) Then
    If $_DEBUG Then ConsoleWrite('--> файл "' & $pathFile & '" не найден' & @LF)
    SetError(1)
    Return 'ERROR_FILE_NOT_FOUND'
  EndIf

  ;~~~ читаем файл капчи
  Local $binFile = FileRead($pathFile)
  If @error Then
    If $_DEBUG Then ConsoleWrite('--> невозможно прочитать файл "' & $pathFile & '"' & @LF)
    SetError(2)
    Return 'ERROR_FILE_NOT_READ'
  EndIf

  ;~~~ определяем тип файла
  Local $ext = StringSplit($pathFile, '.')
  $ext = $ext[$ext[0]]
  Local $ContentType
  Switch $ext
    Case 'jpg'
      $ContentType = 'image/jpeg'
    Case 'gif'
      $ContentType = 'image/gif'
    Case 'png'
      $ContentType = 'image/png'
    Case Else
      If $_DEBUG Then ConsoleWrite('--> не поддерживаемый формат изображения "' & $ext & '"' & @LF)
      SetError(3)
      Return 'ERROR_IMAGE_TYPE_NOT_SUPPORT'
  EndSwitch

  ;~~~ собираем тело пакета
  Local $boundary = '----AFnIn7z0bMWeTdpy' ; задаём разделитель данных в HTTP запросе
  Local $content = '--$boundary' & @LF
  $content &= 'Content-Disposition: form-data; name="method"' & @LF & @LF
  $content &= 'post' & @LF ; метод передачи данных
  $content &= '--' & $boundary & @LF
  $content &= 'Content-Disposition: form-data; name="key"' & @LF & @LF
  $content &= $apiKey & @LF ; ключ
  ;$content &= '--' & $boundary & @LF
  ;$content &= 'Content-Disposition: form-data; name="regsense"' & @LF & @LF
  ;$content &= '1' & @LF ; с учетом регистра
  $content &= '--' & $boundary & @LF
  $content &= 'Content-Disposition: form-data; name="file"; filename="captcha.' & $ext & '"' & @LF
  $content &= 'Content-Type: ' & $ContentType & @LF & @LF
  $content &= $binFile & @LF ; содержимое ФАЙЛА капчи, БЕЗ какого либо кодирования, целиком
  $content &= '--' & $boundary & '--'

  ;~~~ отправка капчи
  Local $oWinHttp = ObjCreate('WinHttp.WinHttpRequest.5.1') ; создаём COM-объект
  With $oWinHttp
    .Open('POST', 'http://rucaptcha.com/in.php', 0) ; создаём соеденение, указываем адрес страницы
    .SetRequestHeader('Content-Type', 'multipart/form-data; boundary=' & $boundary) ; тип отправляемого запроса
    .SetRequestHeader('Content-Length', BinaryLen($binFile)) ; длина запроса
    .Send(StringToBinary($content, 1)) ; отправляем запрос
    Local $sResp = .ResponseText ; получаем ответ
  EndWith

  ;~~~ разбираем ответ отправки
  Dim $idCapcha = StringSplit($sResp, '|') ; парсим ответ
  If $idCapcha[1] = 'OK' Then
    $idCapcha = $idCapcha[2]
    If $_DEBUG Then ConsoleWrite('--> id капчи: ' & $idCapcha & @LF)
    Return $idCapcha
  Else
    Local $sOut = __antigatecom_error($sResp)
    If $_DEBUG Then ConsoleWrite('--> сервер вернул ошибку: ' & $sOut & @LF)
    SetError(4)
    Return $sOut
  EndIf

EndFunc ;==> __antigatecom_upload

; #FUNCTION# ====================================================================================================================
; Name...........: __antigatecom_check
; Description ...: Получение статуса капчи
; Syntax.........: __antigatecom_check($apiKey, $idCaptcha, $secTimeout)
; Parameters ....: $apiKey - ключ аккаунта
;                  $idCaptcha - id капчи
;                  $secTimeout - таймаут проверки капчи (минимум 5 сек.), не обязательно для указания
; Return values .: Success: текст капчи
;                  Failure: @error и текст ошибки
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func __antigatecom_check($apiKey, $idCaptcha, $secTimeout = 5)
  ;If $secTimeout < 5 Then $secTimeout = 5
  Local $sResp
  While 1
    Sleep(1000*$secTimeout)
    $sResp = InetRead('http://rucaptcha.com/res.php?key=' & $apiKey & '&action=get&id=' & $idCaptcha & '&rnd=' & Random())
    $sResp = BinaryToString($sResp)
    Local $textCaptcha = StringSplit($sResp, '|') ; парсим ответ
    If $textCaptcha[1] = 'OK' Then
      $textCaptcha = $textCaptcha[2]
      If $_DEBUG Then ConsoleWrite('--> текст капчи: ' & $textCaptcha & @LF)
      Return $textCaptcha
    ElseIf $sResp = 'CAPCHA_NOT_READY' Then
      If $_DEBUG Then ConsoleWrite('--> капча ещё не распознана' & @LF)
    Else
      Local $sOut = __antigatecom_error($sResp)
      If $_DEBUG Then ConsoleWrite('--> ошибка распознавания капчи: ' & $sOut & @LF)
      SetError(1)
      Return $sOut
    EndIf
  WEnd
EndFunc ;==> __antigatecom_check

; #FUNCTION# ====================================================================================================================
; Name...........: _antigatecom_bad
; Description ...: Пожаловаться на неправильно разгаданный текст
; Syntax.........: _antigatecom_bad($apiKey, $idCaptcha)
; Parameters ....: $apiKey - ключ аккаунта
;                  $idCaptcha - id капчи
; Return values .: Success: 1
;                  Failure: @error и текст ошибки
; Author ........: SERJ
; Modified.......: 17/06/2013
; ===============================================================================================================================
Func _antigatecom_bad($apiKey, $idCaptcha)
  If $_DEBUG Then ConsoleWrite('--> жалуемся на капчу с id #' & $idCaptcha & @LF)
  Local $sResp = InetRead('http://rucaptcha.com/res.php?key=' & $apiKey & '&action=reportbad&id=' & $idCaptcha)
  $sResp = BinaryToString($sResp)
  Local $sOut = __antigatecom_error($sResp)
  If $sResp <> 'OK_REPORT_RECORDED' Then SetError(1)
  Return $sOut
EndFunc ;==> _antigatecom_bad

; #FUNCTION# ====================================================================================================================
; Name...........: _antigatecom_get
; Description ...: Отправка изображения и получение текста капчи
; Syntax.........: _antigatecom_get($apiKey, $pathFile, $secTimeout)
; Parameters ....: $apiKey - ключ аккаунта
;                  $pathFile - путь до изображения с капчёй
;                  $secTimeout - таймаут проверки капчи (минимум 5 сек.), не обязательно для указания
; Return values .: Success: текст капчи
;                  Failure: @error и текст ошибки
; Related .......: __antigatecom_upload, __antigatecom_check
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func _antigatecom_get($apiKey, $pathFile, $secTimeout = 5)

  ;~~~ отправка изображения на сервер
  Local $idCaptcha = __antigatecom_upload($apiKey, $pathFile)
  If @error Then
    If $_DEBUG Then ConsoleWrite('--> ошибка отправки картинки: ' & $idCaptcha & @LF)
    SetError(1)
    Return 'ERROR_UPLOAD'
  EndIf

  If Not IsDeclared('_IDCAPTCHA') Then Global $_IDCAPTCHA
  $_IDCAPTCHA = $idCaptcha ; для того, чтобы можно было жаловаться

  ;~~~ получение текста капчи
  Local $textCaptcha = __antigatecom_check($apiKey, $idCaptcha, $secTimeout)
  If @error Then
    If $_DEBUG Then ConsoleWrite('--> ошибка получения текста капчи: ' & $textCaptcha & @LF)
    SetError(2)
    Return 'ERROR_CHECK'
  EndIf

  Return $textCaptcha
EndFunc ;==> _antigatecom_get

; #FUNCTION# ====================================================================================================================
; Name...........: _antigatecom_stats
; Description ...: Получение статистику использования аккаунта
; Syntax.........: _antigatecom_stats($apiKey, $date)
; Parameters ....: $apiKey - ключ аккаунта
;                  $date - дата, за которую требуется получить статистику (формат ДД.ММ.ГГГГ), не обязательно для указания
; Return values .: Success: текст капчи
;                  Failure: @error и текст ошибки
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func _antigatecom_stats($apiKey, $date = '')
  If Not $date Then $date = @MDAY & '.' & @MON & '.' & @YEAR
  MsgBox(0, '', $date)
  Local $aDate = StringSplit($date, '.')
  $date = $aDate[3] & '-' & $aDate[2] & '-' & $aDate[1]
  Local $sResp = InetRead('http://rucaptcha.com/res.php?key=' & $apiKey & '&action=getstats&date=' & $date)
  $sResp = BinaryToString($sResp)
  Local $sOut = __antigatecom_error($sResp)
  If StringInStr($sResp, 'ERROR_') Then SetError(1)
  Return $sOut
EndFunc ;==> _antigatecom_stats

; #FUNCTION# ====================================================================================================================
; Name...........: _antigatecom_statsSystem
; Description ...: Статистика системы в реальном времени
; Syntax.........: _antigatecom_statsSystem()
; Parameters ....: none
; Return values .: необходимо доработать
; Author ........: SERJ
; Modified.......: 16/06/2013
; ===============================================================================================================================
Func _antigatecom_statsSystem()
  ; waiting:                количество работников ожидающих капчу. Максимально показываемое число - 50.
  ; load:                   процент загрузки работников
  ; minbid:                 минимальная ставка необходимая для прохождения вашей капчи
  ; averageRecognitionTime: среднее время (в секундах) за которое в данный момент разгадываются капчи
  Local $sResp = InetRead('http://rucaptcha.com/load.php')
  $sResp = BinaryToString($sResp)
  Return $sResp
EndFunc ;==> _antigatecom_statsSystem

; #FUNCTION# ====================================================================================================================
; Name...........: __antigatecom_error
; Description ...: Перевод текста ошибки на понятный язык
; Syntax.........: __antigatecom_error($sError)
; Parameters ....: $sError - текст ошибки, возвращаемый сервером
; Return values .: ...
; Author ........: SERJ
; Modified.......: 17/06/2013
; ===============================================================================================================================
Func __antigatecom_error($sError)
  Switch $sError
    Case 'ERROR_WRONG_USER_KEY'
      Return 'Неправильный формат ключа учетной записи (длина не равняется 32 байтам)'
    Case 'ERROR_KEY_DOES_NOT_EXIST'
      Return 'Вы использовали неверный captcha ключ в запросевы использовали неверный captcha ключ в запросе'
    Case 'ERROR_ZERO_BALANCE'
      Return 'Нулевой либо отрицательный баланс'
    Case 'ERROR_NO_SLOT_AVAILABLE'
      Return 'Нет свободных работников в данный момент, попробуйте позже либо повысьте свою максимальную ставку'
    Case 'ERROR_ZERO_CAPTCHA_FILESIZE'
      Return 'Размер капчи которую вы загружаете менее 100 байт'
    Case 'RROR_TOO_BIG_CAPTCHA_FILESIZE'
      Return 'Ваша капча имеет размер более 100 килобайт'
    Case 'ERROR_WRONG_FILE_EXTENSION'
      Return 'Ваша капча имеет неверное расширение, допустимые расширения JPG, JPEG, GIF, PNG'
    Case 'ERROR_IMAGE_TYPE_NOT_SUPPORTED'
      Return 'Невозможно определить тип файла капчи, принимаются только форматы JPG, GIF, PNG'
    Case 'ERROR_IP_NOT_ALLOWED'
      Return 'Запрос с этого IP адреса с текущим ключом отклонен. Пожалуйста смотрите раздел управления доступом по IP'
    Case 'CAPCHA_NOT_READY'
      Return 'Капча еще не распознана, повторите запрос через 1-5 секунд'
    Case 'ERROR_WRONG_ID_FORMAT'
      Return 'Некорректный идентификатор капчи, принимаются только цифры'
    Case 'ERROR_CAPTCHA_UNSOLVABLE'
      Return 'Капчу не смогли разгадать 5 разных работников'
    Case 'OK_REPORT_RECORDED'
      Return 'Жалоба на неверно разгаданную капчу принята'
    Case Else
      Return $sError
  EndSwitch
EndFunc ;==> __antigatecom_error
  • Печать

Страницы: [1]   Вниз

Тема: [Xubuntu] Не отображаются изображения. [Решено]  (Прочитано 1764 раз)

0 Пользователей и 1 Гость просматривают эту тему.

Оффлайн
dronov

Не отображаются изображения во всей ОС, до этого устанавливал VBoxGuestAdditions дополнение.
Во время последнего запуска все работало исправно. ОС функционирует нормально, все работает.
Нельзя сохранить никакое изображение, выдает ошибки: «Image type «png» is not supported».
ОС: Xubuntu 16.04.3 / 32 bit. Заранее спасибо за помощь.


ТС не появлялся на Форуме более трех месяцев по состоянию на 30/01/2020 (последняя явка: 02/10/2017). Модератором раздела принято решение закрыть тему.
—zg_nico

« Последнее редактирование: 18 Марта 2020, 12:07:52 от zg_nico »


Оффлайн
vovchok

Натыкаюсь на эту проблему уже в третий раз — не отображаются картинки нигде кроме firefox. Все ярлыки лишены значков, нет значков управления окнами, невозможно просмотреть файлы изображений. Почему-то невозможно создать нового пользователя в приложении»пользователи  группы» — появляется окно, нескольлько сек. дрожит и исчезает. В первых двух случаях переустановил систему — кто-нибудь может что-то внятное предложить? Возникает это при обновлении xubuntu 16.07/17.04.


Оффлайн
ReNzRv

vovchok,
А на 18.04? Попробуй с лайва без установки.


Оффлайн
бамбук

Никогда не видел подобной проблемы в Xubuntu
и в Linux в частности .

Это фантастика .
Подозреваю  винда виновата или виртуальная машина в винде .

Chuwi LapBook 14.1   ревизия ноутбука-3.0


Оффлайн
vovchok

При чем тут винда — xubuntu 18.04 единственная ОС на ноуте и после очередного обновления и перезагрузки все значки без изображений, т.к.система с чего-то вдруг не умеет работать с изображениями, хотя в браузере по прежнему все отображается корректно. И пользователь ничего не может запустить, т.к. не понятно что где. Сегодня уже в четвертый раз это произошло (все это на разных компах при обновлении во всех случаях до 18.04 с 18/17/16.04) и что делать, кроме полной переустановки? Разумеется с лайва все работает, но как реанимировать проапгрейдженую систему на винте?

« Последнее редактирование: 03 Декабря 2019, 16:58:50 от vovchok »


Оффлайн
zg_nico

в браузере по прежнему все отображается корректно

файловый менеджер стало быть перестал значки отображать, — правильно? Везде, или только на рабочем столе они пропали? Если его из терминала запустить, в нем зайти куда-нибудь, — ошибки будут какие-нибудь в терминале сыпаться?

Нельзя сохранить никакое изображение, выдает ошибки: «Image type «png» is not supported».

Если по вот этому судить — то надо наверное mime-тип заново прописывать пытаться каким-то образом для png. Я бы в этом направлении копать попробовал…

Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb.  Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.


Онлайн
ALiEN175

vovchok, попробуйте

sudo apt install --reinstall gtk-engine-pixbufи перелогин

ASUS P5K-C :: Intel Xeon E5450 @ 3.00GHz :: 8 GB DDR2 :: Radeon R7 260X :: XFCE
ACER 5750G :: Intel Core i5-2450M @ 2.50GHz :: 6 GB DDR3 :: GeForce GT 630M :: XFCE


Оффлайн
vovchok

sudo apt install —reinstall gtk-engine-pixbuf

При запуске этой команды свалилось с ошибкой необходимости выполнить

sudo dpkg --configure -aпосле долгого выполнения которой даже без перезагрузки картинки появились. А я до этого на других компах трижды сносил и переставлял систему, т.к. не было времени на эксперименты…
Спасибо!


Оффлайн
zg_nico

ALiEN175, Вы нашли решение! Поздравляю  :D  И спасибо огромное!
vovchok, спасибо что дали обратную связь. Проставил пометку «Решено»

Thunderobot G150-D2: Intel SkyLake Core i7-6700HQ 2.60GHz, 8Gb DDR4 2133 MHz, Intel HD530, NVidia GeForce GTX 960M 2Gb.  Ubuntu 16.04 64x [Unity], KUbuntu 18.04 64x.


  • Печать

Страницы: [1]   Вверх

If I do «Import Sketch» from my iPhone, I am receiving the following error message:

The image type is not supported on this device.

I’m seeing this new error in Pages and Keynote, specifically; otherwise, the sketches do come in but always give this error message.

Thanks.

John

MacBook Pro 15″,

macOS 10.15

Posted on Sep 22, 2020 1:52 PM

I am calling out that unsupported image type dialog as a bug, as a proper PNG of the sketch is inserted into Keynote v10.2 from my iPhone 6s+ running iOS 14.

Send BUG feedback to the Keynote Product team this morning.

Posted on Sep 24, 2020 6:12 AM

Понравилась статья? Поделить с друзьями:
  • Error image is not a valid ios image archive
  • Error image id roblox
  • Error image given has not completed loading
  • Error im002 microsoft диспетчер драйверов odbc источник данных не найден
  • Error illegalattributevalue при печати